# Maintainer: Justin Gassner _pkgname=slock pkgname=$_pkgname-jxir pkgver=1.4.r6.g2aa4369 pkgrel=1 pkgdesc='A simple screen locker for X' arch=('x86_64') url="https://tools.suckless.org/$_pkgname" license=('MIT') depends=('libxrandr') makedepends=('git') provides=("$_pkgname") conflicts=("$_pkgname") source=("git+https://git.jxir.de/$_pkgname") sha256sums=('SKIP') pkgver(){ cd "$_pkgname" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "$_pkgname" for branch in config; do git merge --no-edit origin/$branch done echo "CPPFLAGS+=${CPPFLAGS}" >> config.mk echo "CFLAGS+=${CFLAGS}" >> config.mk echo "LDFLAGS+=${LDFLAGS}" >> config.mk } build() { cd "$_pkgname" make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 } package() { cd "$_pkgname" make PREFIX=/usr DESTDIR="$pkgdir" install install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" install -Dm644 README -t "$pkgdir/usr/share/doc/$_pkgname" }