aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans-Nikolai Viessmann2016-12-15 20:25:48 +0000
committerHans-Nikolai Viessmann2016-12-15 20:25:48 +0000
commit9a52dbe694f88201c83d13f70bdc6aef1a95f715 (patch)
tree79fb0e3688ffa1b0091e37e2ac2f594bcb453ad7
parent5b67fd9f9998fee9704783418581f981f3caee8c (diff)
downloadst-me-9a52dbe694f88201c83d13f70bdc6aef1a95f715.tar.gz
st-me-9a52dbe694f88201c83d13f70bdc6aef1a95f715.zip
Added gitignore and moved PKGBUILD
-rw-r--r--.gitignore12
-rw-r--r--PKGBUILD (renamed from archlinux/PKGBUILD)30
2 files changed, 35 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..533a658
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,12 @@
+# generated files
+/config.h
+
+# binaries
+/st
+/st.o
+
+# packaging
+/pkg
+/src
+/*.tar.xz
+/*.tar.xz.sig
diff --git a/archlinux/PKGBUILD b/PKGBUILD
index a43b0e9..f8611de 100644
--- a/archlinux/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Hans-Nikolai Viessmann <hv15 AT hw.ac.uk>
_pkgname=st-me
pkgname="${_pkgname}-git"
-pkgver=r970.1be8681
+pkgver=r972.5b67fd9
pkgrel=1
pkgdesc="This is a custom release of the Suckless Terminal with a few patches and extras"
arch=('x86_64' 'i686')
@@ -10,26 +10,42 @@ license=('MIT')
depends=('libxft' 'libxext')
makedepends=('ncurses')
conflicts=('st')
-source=("${pkgname}::git+https://git.hans.ninja/hans/${_pkgname}.git#branch=extras")
-md5sums=('SKIP')
+source=('Makefile'
+ 'config.mk'
+ 'config.def.h'
+ 'arg.h'
+ 'st.c'
+ 'st.1'
+ 'st.info'
+ 'LICENSE'
+ 'README.md')
+md5sums=('896bfea38b9959e5167b56ef76a6ac4b'
+ 'afe2afef8c754a3a8e2cffb05b718614'
+ 'e9eb81dab17343173f3ed3ebfd8f53d3'
+ '4a06cd509ed479450e36833c6ce2015b'
+ '6247759f6181bfde2311612aa0d5f8da'
+ 'dcdb3f46c2a7789991b35158e1848b4c'
+ 'f2f4216145a3d3b6e51cb7a7aba36bf0'
+ 'aed0049ea0ae8aa39062f4f5f36acc1d'
+ '282bed92d6f4872b606e4a2c48ed5d68')
pkgver() {
- cd ${pkgname}
+ ## Assume we are in the repo...
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
- cd ${pkgname}
+ cd ${srcdir}
sed -i '/\@tic /d' Makefile
}
build() {
- cd ${pkgname}
+ cd ${srcdir}
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}
package() {
- cd ${pkgname}
+ cd ${srcdir}
make PREFIX=/usr DESTDIR="${pkgdir}" TERMINFO="${pkgdir}/usr/share/terminfo" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"