bamf: enable gir
This commit is contained in:
parent
dcd26c2290
commit
0618098138
srcpkgs/bamf
|
@ -1,28 +1,43 @@
|
||||||
# Template file for 'bamf'
|
# Template file for 'bamf'
|
||||||
pkgname=bamf
|
pkgname=bamf
|
||||||
version=0.5.4
|
version=0.5.4
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="glib-devel gtk-doc pkg-config python-lxml libxslt-python libxml2-python
|
build_helper="gir"
|
||||||
vala-devel $(vopt_if gir gobject-introspection)"
|
hostmakedepends="glib-devel gtk-doc pkgconf python-lxml libxslt-python libxml2-python
|
||||||
makedepends="glib-devel libgtop-devel libwnck-devel"
|
$(vopt_if vala vala)"
|
||||||
|
makedepends="libglib-devel libgtop-devel libwnck-devel"
|
||||||
short_desc="Application matching framework"
|
short_desc="Application matching framework"
|
||||||
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
||||||
license="LGPL-3.0-only, LGPL-2.1-only, GPL-3.0-or-later"
|
license="LGPL-3.0-only, LGPL-2.1-only, GPL-3.0-or-later"
|
||||||
homepage="https://launchpad.net/bamf"
|
homepage="https://launchpad.net/bamf"
|
||||||
distfiles="https://launchpad.net/bamf/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
|
distfiles="https://launchpad.net/bamf/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
|
||||||
checksum=5bb87a5bf46ab1fc9a229a851c0ee4f610d943716a7c83d318f6a8f50d76beb3
|
checksum=5bb87a5bf46ab1fc9a229a851c0ee4f610d943716a7c83d318f6a8f50d76beb3
|
||||||
|
|
||||||
CFLAGS="-Wno-cpp -Wno-deprecated-declarations"
|
CFLAGS="-Wno-cpp -Wno-deprecated-declarations"
|
||||||
|
|
||||||
build_options="gir"
|
build_options="gir vala"
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
|
||||||
build_options_default="gir"
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
fi
|
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
|
||||||
|
*-musl) ;;
|
||||||
|
*) build_options_default+=" gir vala" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
sed -i configure -e 's;if !($PYTHON -c "import libxslt, libxml2" 2> /dev/null);if false;'
|
sed -i configure -e 's;if !($PYTHON -c "import libxslt, libxml2" 2> /dev/null);if false;'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
if [ "$build_option_gir" -a "$CROSS_BUILD" ]; then
|
||||||
|
mv ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/share/gir-1.0 \
|
||||||
|
${DESTDIR}/usr/share
|
||||||
|
|
||||||
|
mv ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/lib/girepository-1.0 \
|
||||||
|
${DESTDIR}/usr/lib
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
bamf-devel_package() {
|
bamf-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||||
|
@ -33,6 +48,8 @@ bamf-devel_package() {
|
||||||
vmove usr/share/gtk-doc
|
vmove usr/share/gtk-doc
|
||||||
if [ "$build_option_gir" ]; then
|
if [ "$build_option_gir" ]; then
|
||||||
vmove usr/share/gir-1.0
|
vmove usr/share/gir-1.0
|
||||||
|
fi
|
||||||
|
if [ "$build_option_vala" ]; then
|
||||||
vmove usr/share/vala
|
vmove usr/share/vala
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue