void-packages/srcpkgs/slock/template

29 lines
987 B
Plaintext
Raw Normal View History

2012-12-14 16:32:03 +01:00
# Template file for 'slock'
pkgname=slock
version=1.1
2013-06-23 13:05:35 +02:00
revision=2
hostmakedepends="pkg-config"
2013-06-23 13:05:35 +02:00
makedepends="libX11-devel libXext-devel"
2012-12-14 16:32:03 +01: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"
checksum=e04ae5070c646c78251780d386e14d16fd100367e877dd5cf616dc7aedd0e0e4
long_desc="
Simple X display locker. This is the simplest X screen locker we are aware of.
It is stable and quite a lot of people in our community are using it every
day when they are out with friends or fetching some food from the local pub."
do_build() {
2013-06-23 13:05:35 +02: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 16:32:03 +01:00
}
do_install() {
2013-06-23 13:05:35 +02:00
make PREFIX=/usr DESTDIR=$DESTDIR install
vinstall LICENSE 644 usr/share/licenses/$pkgname
2012-12-14 16:32:03 +01:00
}