43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'bamf'
|
|
pkgname=bamf
|
|
version=0.5.4
|
|
revision=4
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
hostmakedepends="glib-devel gtk-doc pkg-config python-lxml libxslt-python libxml2-python
|
|
$(vopt_if vala vala)"
|
|
makedepends="libglib-devel libgtop-devel libwnck-devel"
|
|
short_desc="Application matching framework"
|
|
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
|
license="LGPL-3.0-only, LGPL-2.1-only, GPL-3.0-or-later"
|
|
homepage="https://launchpad.net/bamf"
|
|
distfiles="https://launchpad.net/bamf/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
|
|
checksum=5bb87a5bf46ab1fc9a229a851c0ee4f610d943716a7c83d318f6a8f50d76beb3
|
|
|
|
CFLAGS="-Wno-cpp -Wno-deprecated-declarations"
|
|
|
|
build_options="gir vala"
|
|
build_options_default="gir vala"
|
|
|
|
pre_configure() {
|
|
sed -i configure -e 's;if !($PYTHON -c "import libxslt, libxml2" 2> /dev/null);if false;'
|
|
sed -i configure -e '/CFLAGS=/s/ \-Werror / /'
|
|
}
|
|
|
|
bamf-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.so
|
|
vmove usr/share/gtk-doc
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|