mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
community/libhdhomerun: properly install headers and libs
This commit is contained in:
parent
205c988812
commit
7adf55b09e
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user