Commit 7adf55b0 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

community/libhdhomerun: properly install headers and libs

parent 205c9888
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment