void-packages/srcpkgs/slock/template
2016-02-13 00:29:41 +01:00

24 lines
768 B
Bash

# Template file for 'slock'
pkgname=slock
version=1.3
revision=1
hostmakedepends="pkg-config"
makedepends="libX11-devel libXext-devel libXrandr-devel"
short_desc="A simple screen locker for X"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://tools.suckless.org/slock"
distfiles="http://dl.suckless.org/tools/slock-${version}.tar.gz"
checksum=bab4a3aea4046aa0fd0361c3649b79b90ca531bc5dfae3c4a6c0fe436152bd18
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
vinstall LICENSE 644 usr/share/licenses/$pkgname
}