# 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" }