43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'libnih'
|
|
pkgname=libnih
|
|
version=1.0.3
|
|
revision=4
|
|
build_style=gnu-configure
|
|
configure_args="--enable-threading"
|
|
hostmakedepends="automake libtool gettext-devel pkg-config"
|
|
makedepends="dbus-devel expat-devel"
|
|
short_desc="Small library for C application development"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://github.com/keybuk/${pkgname}"
|
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
|
checksum=d330f767cd4c0e3dd9ca28480394b96b93ffc0e021fbf0a69358cce919bc5aef
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" nih-devel"
|
|
configure_args+=" NIH_DBUS_TOOL=/usr/bin/nih-dbus-tool"
|
|
fi
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
libnih-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/aclocal
|
|
}
|
|
}
|
|
|
|
nih-devel_package() {
|
|
short_desc+=" - development tools"
|
|
pkg_install() {
|
|
vmove usr/bin/nih-dbus-tool
|
|
vmove usr/share/man/man1/nih-dbus-tool.1
|
|
}
|
|
}
|