slock: fix crossbuilds fatal errors
This commit is contained in:
parent
00d83d5915
commit
dacf1f99e9
1 changed files with 8 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
|||
# Template file for 'slock'
|
||||
pkgname=slock
|
||||
version=1.1
|
||||
revision=1
|
||||
revision=2
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libXext-devel"
|
||||
makedepends="libX11-devel libXext-devel"
|
||||
short_desc="A simple screen locker for X"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="MIT"
|
||||
|
@ -16,11 +16,15 @@ long_desc="
|
|||
day when they are out with friends or fetching some food from the local pub."
|
||||
|
||||
do_build() {
|
||||
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 ${makejobs}
|
||||
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
|
||||
make PREFIX=/usr DESTDIR=$DESTDIR install
|
||||
vinstall LICENSE 644 usr/share/licenses/$pkgname
|
||||
}
|
||||
|
||||
slock_package() {
|
||||
|
|
Loading…
Reference in a new issue