aboutsummaryrefslogtreecommitdiffstats
path: root/main/libcec/APKBUILD
blob: b6a7ffb21a15e29981cf56d0397b131f3647d851 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=libcec
pkgver=2.1.4
pkgrel=0
pkgdesc="libcec for the Pulse-Eight USB-CEC adapter"
url="https://github.com/Pulse-Eight/libcec"
arch="all"
license="GPL"
depends=""
depends_dev="lockdev-dev udev-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev"
source="http://github.com/Pulse-Eight/libcec/archive/libcec-$pkgver.tar.gz
	musl-fix.patch
	"

_builddir="$srcdir"/libcec-libcec-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
        ./bootstrap || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
}

package() {
	cd "$_builddir"
        make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="23bbce4295fe5aa2842177cde9cb8688  libcec-2.1.4.tar.gz
f735b18f2cb4f75aaa68a15407e233cd  musl-fix.patch"
sha256sums="79bef5232a5c9ab987ca3a2d4bfcaeb80480fd26f502dc1a996fe845d90fe147  libcec-2.1.4.tar.gz
f64edcdc316ffd0ea4310529bf7ba96072c757182201c382e4f9c791cf8efbe9  musl-fix.patch"
sha512sums="e2107b2003e003de8efea4b46a7776516652a2b27a0e0983a763324b3ac1ed2995cb0adb76e2f450bea72a1a0bdecfc5b3408fa702c74189204d694f5e9d2d8a  libcec-2.1.4.tar.gz
ca81f243ca7245efbb5bea97209894b37316195ed14ab8687d6cc4d01dd121c16a245d5a95c6554903138f1f3f0a0be8602e8579474e64a618903737e4619136  musl-fix.patch"