diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-02-25 12:43:13 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-02-25 13:51:35 +0100 |
commit | 7adf55b09e89c66500b8b3666604de2fe27db957 (patch) | |
tree | 9099f96cb00daea90594eab0806ce213695176e1 /community/libhdhomerun | |
parent | 205c9888121a8921247b6c59969ce04df9d493ca (diff) | |
download | aports-7adf55b09e89c66500b8b3666604de2fe27db957.tar.bz2 aports-7adf55b09e89c66500b8b3666604de2fe27db957.tar.xz |
community/libhdhomerun: properly install headers and libs
Diffstat (limited to 'community/libhdhomerun')
-rw-r--r-- | community/libhdhomerun/APKBUILD | 30 |
1 files changed, 16 insertions, 14 deletions
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 <hasse-docker@hagenjohansen.dk> 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" |