# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=slock pkgver=1.5 pkgrel=0 pkgdesc="A simple screen locker for X" url="https://tools.suckless.org/slock/" arch="all" license="MIT" makedepends="libxext-dev libxrandr-dev linux-headers" options="suid" subpackages="$pkgname-doc" source="https://dl.suckless.org/tools/slock-$pkgver.tar.gz" # secfixes: # 1.3-r3: # - CVE-2016-6866 prepare() { default_prepare sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \ -e '/LDFLAGS/{s/-s//;s/=/+=/}' \ "$builddir"/config.mk } build() { make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 \ -C "$builddir" } package() { make PREFIX=/usr DESTDIR="$pkgdir" \ -C "$builddir" install } sha512sums=" 2402b1e49f5dbe06cca2f3a31efedce6359413b240f2b98c57147483591a873c3c5457dbf6707485167002ff6d7ee0e9005d9fa506a51bf71337624e8728bb43 slock-1.5.tar.gz "