libnih: don't ship development tools with the library
This commit is contained in:
parent
12c4b2c61b
commit
10529fab7b
2 changed files with 19 additions and 12 deletions
|
@ -1,26 +1,24 @@
|
||||||
# Template file for 'libnih'
|
# Template file for 'libnih'
|
||||||
pkgname=libnih
|
pkgname=libnih
|
||||||
version=1.0.3
|
version=1.0.3
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-threading"
|
configure_args="--enable-threading"
|
||||||
hostmakedepends="automake libtool gettext-devel pkg-config"
|
hostmakedepends="automake libtool gettext-devel pkg-config"
|
||||||
makedepends="dbus-devel"
|
makedepends="dbus-devel expat-devel"
|
||||||
short_desc="Small library for C application development"
|
short_desc="Small library for C application development"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="GPL-2"
|
license="GPL-2.0-only"
|
||||||
homepage="https://launchpad.net/libnih"
|
homepage="https://github.com/keybuk/${pkgname}"
|
||||||
distfiles="http://launchpad.net/libnih/${version%.*}/${version}/+download/libnih-${version}.tar.gz"
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
||||||
checksum=897572df7565c0a90a81532671e23c63f99b4efde2eecbbf11e7857fbc61f405
|
checksum=d330f767cd4c0e3dd9ca28480394b96b93ffc0e021fbf0a69358cce919bc5aef
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" libnih"
|
hostmakedepends+=" nih-devel"
|
||||||
|
configure_args+=" NIH_DBUS_TOOL=/usr/bin/nih-dbus-tool"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
configure_args+=" NIH_DBUS_TOOL=/usr/bin/nih-dbus-tool"
|
|
||||||
fi
|
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,9 +27,17 @@ libnih-devel_package() {
|
||||||
depends="${sourcepkg}-${version}_${revision}"
|
depends="${sourcepkg}-${version}_${revision}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/*.a
|
vmove "usr/lib/*.a"
|
||||||
vmove usr/lib/*.so
|
vmove "usr/lib/*.so"
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove usr/share/aclocal
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/nih-devel
Symbolic link
1
srcpkgs/nih-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
libnih
|
Loading…
Reference in a new issue