void-packages/srcpkgs/slock/template

24 lines
708 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="Juan RP <xtraeme@voidlinux.org>"
license="MIT"
homepage="http://tools.suckless.org/slock"
distfiles="http://dl.suckless.org/tools/slock-${version}.tar.gz"
checksum=b53849dbc60109a987d7a49b8da197305c29307fd74c12dc18af0d3044392e6a
do_build() {
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
}