aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2021-07-25 18:26:05 +0200
committerBart Ribbers <bribbers@disroot.org>2021-07-26 09:28:18 +0000
commit89e71f27a25bd45b637146bc66cff37c5ca8234a (patch)
tree808d9ffe21addc106deb62b0d9ce112eb6b63756
parent5aea1e1cae11e3a1039d5f3694428b3532fda3c6 (diff)
downloadaports-89e71f27a25bd45b637146bc66cff37c5ca8234a.tar.gz
aports-89e71f27a25bd45b637146bc66cff37c5ca8234a.tar.bz2
aports-89e71f27a25bd45b637146bc66cff37c5ca8234a.tar.xz
community/libcec4: new aport
-rw-r--r--community/libcec4/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/libcec4/APKBUILD b/community/libcec4/APKBUILD
new file mode 100644
index 0000000000..7538d76c6a
--- /dev/null
+++ b/community/libcec4/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libcec4
+pkgver=4.0.7
+pkgrel=0
+pkgdesc="libcec for the Pulse-Eight USB-CEC adapter - 4.0.x"
+url="https://github.com/Pulse-Eight/libcec"
+arch="all"
+license="GPL-2.0-or-later"
+depends_dev="
+ eudev-dev
+ libxrandr-dev
+ python3-dev
+ swig
+ "
+makedepends="$depends_dev
+ cmake
+ p8-platform-dev
+ "
+subpackages="$pkgname-dev py3-$pkgname:py3 $pkgname-tools"
+source="https://github.com/Pulse-Eight/libcec/archive/libcec-$pkgver.tar.gz"
+
+builddir="$srcdir/libcec-libcec-$pkgver"
+
+build() {
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
+
+py3() {
+ amove usr/lib/python*
+}
+
+tools() {
+ pkgdesc="$pkgdesc (tools)"
+ provides="libcec-tools=$pkgver-r$pkgrel"
+
+ amove usr/bin
+}
+
+sha512sums="
+424540a45f9cae3d5dcccc615d487c45033f9cdeb665b8176832495597e2cd58ef7681e13b52f6a32f8a40e1146c04a1a383f5785ea1e731c5c517a9a7843a81 libcec-4.0.7.tar.gz
+"