aboutsummaryrefslogtreecommitdiffstats
path: root/community/libhdhomerun/APKBUILD
blob: 518d2f77770f46fb23718f13092b6c248f7bef9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Hasse Hagen Johansen <hasse-docker@hagenjohansen.dk>
# Maintainer: Hasse Hagen Johansen <hasse-docker@hagenjohansen.dk>
pkgname=libhdhomerun
pkgver=20190621
pkgrel=0
pkgdesc="Library for Silicon Dust HD HomeRun"
options="!check" # No testsuite
url="https://github.com/Silicondust/libhdhomerun"
arch="all"
license="LGPL-2.1-or-later"
depends="$pkgname-libs"
depends_dev="$pkgname-libs"
subpackages="$pkgname-dev $pkgname-libs"
source="http://download.silicondust.com/hdhomerun/libhdhomerun_$pkgver.tgz"

builddir="$srcdir/$pkgname"

build() {
	make
}

package() {
	install -Dm755 hdhomerun_config \
		"$pkgdir"/usr/bin/hdhomerun_config
	for i in *.h; do
		install -Dm644 $i \
			"$pkgdir"/usr/include/libhdhomerun/$i
	done
}

# libhdhomerun does not provide versioned libs so we cannot
# use abuilds libs split function, so we make our own.
libs() {
	pkgdesc="$pkgname (libraries)"
	depends=
	install -Dm755 "$builddir"/libhdhomerun.so \
		"$subpkgdir"/usr/lib/libhdhomerun.so
}

sha512sums="d15c5b0703bf8ca1f3979a8cad93fc33d87c1309367ad5117354c60112a5505d90e80d4bf9055d16b0eef2b892015c5f4886e6544178090b3550c3a8dbd86576  libhdhomerun_20190621.tgz"