aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans-Nikolai Viessmann2016-12-13 18:08:45 +0000
committerHans-Nikolai Viessmann2016-12-13 18:08:45 +0000
commitd979d46356e656d4fa8c66d299d245f4a01d4808 (patch)
tree652bfe52975e3cf877e46e0d9934dede45588212
parentd39cbeb6fc3ca423015f913d087bae6bab4e3358 (diff)
downloadst-me-d979d46356e656d4fa8c66d299d245f4a01d4808.tar.gz
st-me-d979d46356e656d4fa8c66d299d245f4a01d4808.zip
Added PKGBUILD
-rw-r--r--archlinux/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD
new file mode 100644
index 0000000..f4645f3
--- /dev/null
+++ b/archlinux/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Hans-Nikolai Viessmann <hv15 AT hw.ac.uk>
+_pkgname=st-me
+pkgname="${_pkgname}-git"
+pkgver=r967.4890f11
+pkgrel=1
+pkgdesc="This is a custom release of the Suckless Terminal with a few patches and extras"
+arch=('x86_64' 'i686')
+url="http://st.suckless.org/"
+license=('MIT')
+depends=('libxft' 'libxext')
+makedepends=('ncurses')
+conflicts=('st')
+source=("${pkgname}::git+https://git.hans.ninja/hans/${_pkgname}.git#branch=extras")
+md5sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd ${pkgname}
+ sed -i '/\@tic /d' Makefile
+}
+
+build() {
+ cd ${pkgname}
+ make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
+}
+
+package() {
+ cd ${pkgname}
+ make PREFIX=/usr DESTDIR="${pkgdir}" TERMINFO="${pkgdir}/usr/share/terminfo" install
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+# vim: ts=2 sw=2 et: