2012-12-14 15:32:03 +00:00
|
|
|
# Template file for 'slock'
|
|
|
|
pkgname=slock
|
2014-12-22 20:05:11 +00:00
|
|
|
version=1.2
|
2014-02-17 08:32:49 +00:00
|
|
|
revision=3
|
2013-04-14 10:31:59 +00:00
|
|
|
hostmakedepends="pkg-config"
|
2013-06-23 11:05:35 +00:00
|
|
|
makedepends="libX11-devel libXext-devel"
|
2012-12-14 15:32:03 +00:00
|
|
|
short_desc="A simple screen locker for X"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="http://tools.suckless.org/slock"
|
|
|
|
distfiles="http://dl.suckless.org/tools/slock-${version}.tar.gz"
|
2014-12-22 20:05:11 +00:00
|
|
|
checksum=3402658f890a88da3f34db04fca1783ed549ade45c2ebb8d8f0cd2b549f633b3
|
2012-12-14 15:32:03 +00:00
|
|
|
|
|
|
|
do_build() {
|
2013-06-23 11:05:35 +00:00
|
|
|
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}
|
2012-12-14 15:32:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2013-06-23 11:05:35 +00:00
|
|
|
make PREFIX=/usr DESTDIR=$DESTDIR install
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/$pkgname
|
2012-12-14 15:32:03 +00:00
|
|
|
}
|