24 lines
743 B
Bash
24 lines
743 B
Bash
# Template file for 'slock'
|
|
pkgname=slock
|
|
version=1.2
|
|
revision=4
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libX11-devel libXext-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=3402658f890a88da3f34db04fca1783ed549ade45c2ebb8d8f0cd2b549f633b3
|
|
|
|
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" ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make PREFIX=/usr DESTDIR=$DESTDIR install
|
|
vinstall LICENSE 644 usr/share/licenses/$pkgname
|
|
}
|