mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 08:03:51 +02:00
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'
|
# Template file for 'slock'
|
||||||
pkgname=slock
|
pkgname=slock
|
||||||
version=1.1
|
version=1.1
|
||||||
revision=1
|
revision=2
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="libXext-devel"
|
makedepends="libX11-devel libXext-devel"
|
||||||
short_desc="A simple screen locker for X"
|
short_desc="A simple screen locker for X"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -16,11 +16,15 @@ long_desc="
|
||||||
day when they are out with friends or fetching some food from the local pub."
|
day when they are out with friends or fetching some food from the local pub."
|
||||||
|
|
||||||
do_build() {
|
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() {
|
do_install() {
|
||||||
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
make PREFIX=/usr DESTDIR=$DESTDIR install
|
||||||
|
vinstall LICENSE 644 usr/share/licenses/$pkgname
|
||||||
}
|
}
|
||||||
|
|
||||||
slock_package() {
|
slock_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue