From 10529fab7be0c33ff320b959ab866352392c8327 Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Sat, 13 Oct 2018 21:36:36 -0700 Subject: [PATCH] libnih: don't ship development tools with the library --- srcpkgs/libnih/template | 30 ++++++++++++++++++------------ srcpkgs/nih-devel | 1 + 2 files changed, 19 insertions(+), 12 deletions(-) create mode 120000 srcpkgs/nih-devel diff --git a/srcpkgs/libnih/template b/srcpkgs/libnih/template index 304ebd3622e..61a707675db 100644 --- a/srcpkgs/libnih/template +++ b/srcpkgs/libnih/template @@ -1,26 +1,24 @@ # Template file for 'libnih' pkgname=libnih version=1.0.3 -revision=3 +revision=4 build_style=gnu-configure configure_args="--enable-threading" hostmakedepends="automake libtool gettext-devel pkg-config" -makedepends="dbus-devel" +makedepends="dbus-devel expat-devel" short_desc="Small library for C application development" maintainer="Juan RP " -license="GPL-2" -homepage="https://launchpad.net/libnih" -distfiles="http://launchpad.net/libnih/${version%.*}/${version}/+download/libnih-${version}.tar.gz" -checksum=897572df7565c0a90a81532671e23c63f99b4efde2eecbbf11e7857fbc61f405 +license="GPL-2.0-only" +homepage="https://github.com/keybuk/${pkgname}" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=d330f767cd4c0e3dd9ca28480394b96b93ffc0e021fbf0a69358cce919bc5aef if [ "$CROSS_BUILD" ]; then - hostmakedepends+=" libnih" + hostmakedepends+=" nih-devel" + configure_args+=" NIH_DBUS_TOOL=/usr/bin/nih-dbus-tool" fi pre_configure() { - if [ "$CROSS_BUILD" ]; then - configure_args+=" NIH_DBUS_TOOL=/usr/bin/nih-dbus-tool" - fi autoreconf -fi } @@ -29,9 +27,17 @@ libnih-devel_package() { depends="${sourcepkg}-${version}_${revision}" pkg_install() { vmove usr/include - vmove usr/lib/*.a - vmove usr/lib/*.so + 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 + } +} diff --git a/srcpkgs/nih-devel b/srcpkgs/nih-devel new file mode 120000 index 00000000000..9126b2d386f --- /dev/null +++ b/srcpkgs/nih-devel @@ -0,0 +1 @@ +libnih \ No newline at end of file