26 lines
773 B
Bash
26 lines
773 B
Bash
# Template file for 'slock'
|
|
pkgname=slock
|
|
version=1.4
|
|
revision=1
|
|
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=b53849dbc60109a987d7a49b8da197305c29307fd74c12dc18af0d3044392e6a
|
|
|
|
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
|
|
}
|