2014-12-10 15:36:55 +00:00
|
|
|
# Template file for 'libnih'
|
|
|
|
pkgname=libnih
|
|
|
|
version=1.0.3
|
2015-05-28 05:45:09 +00:00
|
|
|
revision=3
|
2014-12-10 15:36:55 +00:00
|
|
|
build_style=gnu-configure
|
2014-12-10 16:02:13 +00:00
|
|
|
configure_args="--enable-threading"
|
|
|
|
hostmakedepends="automake libtool gettext-devel pkg-config"
|
2014-12-10 15:36:55 +00:00
|
|
|
makedepends="dbus-devel"
|
|
|
|
short_desc="Small library for C application development"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-12-10 15:36:55 +00:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="https://launchpad.net/libnih"
|
|
|
|
distfiles="http://launchpad.net/libnih/${version%.*}/${version}/+download/libnih-${version}.tar.gz"
|
|
|
|
checksum=897572df7565c0a90a81532671e23c63f99b4efde2eecbbf11e7857fbc61f405
|
|
|
|
|
2014-12-10 16:02:13 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" libnih"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
configure_args+=" NIH_DBUS_TOOL=/usr/bin/nih-dbus-tool"
|
|
|
|
fi
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2014-12-10 15:36:55 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|