49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
# Template file for 'bamf'
|
|
pkgname=bamf
|
|
version=0.5.5
|
|
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 vala vala) gnome-common which"
|
|
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.xz"
|
|
checksum=10e642adf5169d46e32b113346bebdad437cddd1ddbd45d16c640cf60cabf5da
|
|
|
|
CFLAGS="-Wno-cpp -Wno-deprecated-declarations"
|
|
|
|
build_options="gir vala"
|
|
build_options_default="gir vala"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default+=" gtk_doc"
|
|
fi
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
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
|
|
if [ "$build_option_gtk_doc" ]; then
|
|
vmove usr/share/gtk-doc
|
|
fi
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|