From 7adf55b09e89c66500b8b3666604de2fe27db957 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Thu, 25 Feb 2016 12:43:13 +0100 Subject: community/libhdhomerun: properly install headers and libs --- community/libhdhomerun/APKBUILD | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'community/libhdhomerun/APKBUILD') diff --git a/community/libhdhomerun/APKBUILD b/community/libhdhomerun/APKBUILD index 3edb77497d..4684c9c977 100644 --- a/community/libhdhomerun/APKBUILD +++ b/community/libhdhomerun/APKBUILD @@ -2,16 +2,16 @@ # Maintainer: Hasse Hagen Johansen pkgname=libhdhomerun pkgver=20150826 -pkgrel=0 +pkgrel=1 pkgdesc="Library for Silicon Dust HD HomeRun" url="http://www.silicondust.com/support/downloads/linux/" arch="all" license="LGPL2+" -depends="" -depends_dev="" +depends="$pkgname-libs" +depends_dev="$pkgname" makedepends="$depends_dev" install="" -subpackages="$pkgname-dev $pkgname-doc $pkgname-config" +subpackages="$pkgname-dev $pkgname-libs" source="http://download.silicondust.com/hdhomerun/${pkgname}_${pkgver}.tgz" _builddir="$srcdir/$pkgname" @@ -33,18 +33,20 @@ build() { package() { cd "$_builddir" - install -Dm444 libhdhomerun.so \ - "$pkgdir"/usr/lib/libhdhomerun.so || return 1 - install -D *.h "$pkgdir"/usr/include/libhdhomerun || return 1 - install -Dm644 lgpl.txt \ - "$pkgdir"/usr/share/licenses/$pkgname/lgpl.txt || return 1 + install -Dm755 hdhomerun_config \ + "$pkgdir"/usr/bin/hdhomerun_config || return 1 + for i in *.h; do + install -Dm644 $i \ + "$pkgdir"/usr/include/libhdhomerun/$i || return 1 + done } -config() { - pkgdesc="$pkgname config utility" - cd "$_builddir" - install -Dm755 hdhomerun_config \ - "$subpkgdir"/usr/bin/hdhomerun_config || return 1 +# libhdhomerun does not provide versioned libs so we cannot +# use abuilds libs split function, so we make our own. +libs() { + pkgdesc="$pkgname (libraries)" + install -Dm755 "$_builddir"/libhdhomerun.so \ + "$subpkgdir"/usr/lib/libhdhomerun.so || return 1 } md5sums="05f9a9e1fc8f6ec004b399034775cab0 libhdhomerun_20150826.tgz" -- cgit v1.2.3