commit afef3a5404a725fa01a7351d1b5d2b93d408c321 Author: Ryan Kes Date: Wed Mar 13 20:33:18 2019 +0100 initial import diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ee7e3d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.xz +*.gz +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..6112bcb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Sergej Pupykin +# Contributor: Sebastian A. Liem + +pkgname=slock +pkgver=1.4 +pkgrel=3 +pkgdesc="A simple screen locker for X" +arch=('x86_64') +url="http://tools.suckless.org/slock" +license=('MIT') +depends=('libxext' 'libxrandr') +source=("http://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz") +#source=("slock-$pkgver.tar.bz2::http://hg.suckless.org/slock/archive/$_pkgver.tar.gz") +md5sums=('f91dd5ba50ce7bd1842caeca067086a3') + +prepare() { + cd "$srcdir/slock-$pkgver" + sed -i 's|static const char \*group = "nogroup";|static const char *group = "nobody";|' config.def.h + sed -ri 's/((CPP|C|LD)FLAGS) =/\1 +=/g' config.mk +} + +build() { + cd "$srcdir/slock-$pkgver" + make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 +} + +package() { + cd "$srcdir/slock-$pkgver" + make PREFIX=/usr DESTDIR="$pkgdir" install + install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} +