48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Template file for 'bamf'
|
|
pkgname=bamf
|
|
version=0.5.6
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="$(vopt_with gtk_doc gtk-doc)"
|
|
hostmakedepends="glib-devel gtk-doc pkg-config automake libtool
|
|
$(vopt_if gir vala)"
|
|
makedepends="libglib-devel libgtop-devel libwnck-devel gtk+3-devel"
|
|
short_desc="Application matching framework"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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/bamf-${version}.tar.gz"
|
|
checksum=4fcd00f23c542f3b79f35e10e322b67eacb399cac83f48db261cd8e8ea709478
|
|
|
|
CFLAGS="-Wno-cpp -Wno-deprecated-declarations"
|
|
|
|
build_options="gir gtk_doc"
|
|
build_options_default="gir"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default+=" gtk_doc"
|
|
fi
|
|
|
|
pre_configure() {
|
|
sed -i /GNOME_COMMON_INIT/d configure.ac
|
|
autoreconf -fi
|
|
}
|
|
|
|
bamf-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gtk_doc" ]; then
|
|
vmove usr/share/gtk-doc
|
|
fi
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|