30 lines
853 B
Bash
30 lines
853 B
Bash
# Template file for 'slock'
|
|
pkgname=slock
|
|
version=1.5
|
|
revision=2
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libXrandr-devel"
|
|
short_desc="Simple screen locker for X"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://tools.suckless.org/slock"
|
|
distfiles="http://dl.suckless.org/tools/slock-${version}.tar.gz"
|
|
checksum=aee1e3fbf6a277fb625a3838073b979b6483e7baca4ce82f56de1ff192db0e4d
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
|
|
makedepends+=" libxcrypt-devel"
|
|
fi
|
|
|
|
do_build() {
|
|
[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h
|
|
sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
|
|
sed -i 's/CFLAGS =/CFLAGS +=/g' config.mk
|
|
sed -i 's/LDFLAGS =/LDFLAGS +=/g' config.mk
|
|
make CC=$CC INCS="-I." LIBS="-lX11 -lXext -lcrypt -lXrandr" ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make PREFIX=/usr DESTDIR=$DESTDIR install
|
|
vlicense LICENSE
|
|
}
|