i3lock: cross build support.
This commit is contained in:
parent
7b03021a15
commit
01fe694df8
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'i3lock'
|
||||
pkgname=i3lock
|
||||
version=2.4.1
|
||||
revision=1
|
||||
revision=2
|
||||
short_desc="An improved screenlocker based upon XCB and PAM"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="MIT"
|
||||
|
@ -13,14 +13,20 @@ long_desc="
|
|||
a white screen (you can configure the color/an image). You can return to your
|
||||
screen by entering your password."
|
||||
|
||||
makedepends="which pkg-config libev-devel cairo-devel pam-devel
|
||||
hostmakedepends="which pkg-config"
|
||||
makedepends="libev-devel cairo-devel pam-devel
|
||||
xcb-util-image-devel xcb-util-keysyms-devel"
|
||||
|
||||
do_build() {
|
||||
make ${makejobs}
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
export PKG_CONFIG_PATH="$XBPS_CROSS_BASE/usr/lib/pkgconfig"
|
||||
export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
|
||||
export CFLAGS="$CFLAGS -I$XBPS_CROSS_BASE/usr/include/cairo"
|
||||
fi
|
||||
make CC="$CC" LD="$LD" CFLAGS="$CFLAGS -std=c99" ${makejobs}
|
||||
}
|
||||
|
||||
post_install() {
|
||||
do_install() {
|
||||
make DESTDIR=${DESTDIR} install
|
||||
vinstall i3lock.1 644 usr/share/man/man1
|
||||
}
|
||||
|
@ -28,7 +34,6 @@ post_install() {
|
|||
i3lock_package() {
|
||||
conf_files="/etc/pam.d/i3lock"
|
||||
pkg_install() {
|
||||
vmove etc
|
||||
vmove usr
|
||||
vmove all
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue