void-packages/srcpkgs/wld-git/template

46 lines
1.2 KiB
Plaintext

# Template file for 'wld-git'
# Latest commit as of 20140809
_githash="3acacf1a0890231227172bfdc4509bda36369e71"
_gitshort="${_githash:0:7}"
pkgname=wld-git
version=20140809
revision=3
homepage="https://github.com/michaelforney/wld"
distfiles="https://github.com/michaelforney/wld/archive/${_githash}.tar.gz"
short_desc="Primitive drawing library targeted at Wayland"
maintainer="Enno Boland <eb@s01.de>"
hostmakedepends="pkg-config wayland-devel"
makedepends="pixman-devel fontconfig-devel libdrm-devel wayland-devel"
license="MIT"
checksum=020ec074fdee06c436a354ff13c2ecdd206ae33f095d8f711c9984a0faabd5e2
wrksrc=wld-${_githash}
case "$XBPS_TARGET_MACHINE" in
arm*) _drm_drivers="nouveau";;
i686*|x86_64*) _drm_drivers="intel nouveau";;
esac
do_build() {
sed -i '/^ENABLE_STATIC /d' config.mk
sed -i '/^CC /d' config.mk
sed -i '/^CFLAGS /d' config.mk
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS" \
LDFLAGS="$LDFLAGS" DRM_DRIVERS="$_drm_drivers"
}
do_install() {
make PREFIX=/usr DESTDIR=$DESTDIR DRM_DRIVERS="$_drm_drivers" install
}
wld-git-devel_package() {
depends="wld-git>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}