2014-01-09 21:35:07 +00:00
|
|
|
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
|
|
|
|
# Contributor: Philippe Cherel <philippe.cherel@mayenne.org>
|
2015-07-24 13:39:23 +00:00
|
|
|
# vim: ft=sh:
|
2014-01-09 21:35:07 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2015-07-24 18:15:48 +00:00
|
|
|
# - Exynos support on v7
|
2016-11-26 20:55:10 +00:00
|
|
|
# - Amlogic support on v8
|
2015-07-24 18:15:48 +00:00
|
|
|
|
2014-01-09 21:35:07 +00:00
|
|
|
pkgname=libcec
|
2020-07-16 13:46:02 +00:00
|
|
|
pkgver=6.0.2
|
2021-03-07 20:28:16 +00:00
|
|
|
pkgrel=1.1
|
2014-01-09 21:35:07 +00:00
|
|
|
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter"
|
2018-11-13 19:40:22 +00:00
|
|
|
arch=('x86_64')
|
2014-01-09 21:35:07 +00:00
|
|
|
url="http://libcec.pulse-eight.com/"
|
|
|
|
license=('GPL')
|
2015-07-24 13:39:23 +00:00
|
|
|
makedepends=('cmake')
|
2019-11-23 16:15:27 +00:00
|
|
|
depends=('udev' 'p8-platform' 'libxrandr')
|
2017-01-19 14:37:18 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/Pulse-Eight/$pkgname/archive/$pkgname-$pkgver.tar.gz")
|
2020-07-16 13:46:02 +00:00
|
|
|
sha256sums=('090696d7a4fb772d7acebbb06f91ab92e025531c7c91824046b9e4e71ecb3377')
|
2016-03-04 01:03:38 +00:00
|
|
|
|
2014-01-09 21:35:07 +00:00
|
|
|
build() {
|
2015-07-24 13:39:23 +00:00
|
|
|
cd "$pkgname-$pkgname-$pkgver"
|
2014-01-09 21:35:07 +00:00
|
|
|
|
2015-07-24 13:39:23 +00:00
|
|
|
if [[ $CARCH == 'armv7h' ]]; then
|
2021-03-07 20:28:16 +00:00
|
|
|
CONFIG='-DHAVE_EXYNOS_API=1 -DHAVE_IMX_API=1'
|
2015-07-24 13:39:23 +00:00
|
|
|
fi
|
2014-01-09 21:35:07 +00:00
|
|
|
|
2016-05-26 02:02:21 +00:00
|
|
|
if [[ $CARCH == 'aarch64' ]]; then
|
|
|
|
CONFIG='-DHAVE_AOCEC_API=1'
|
|
|
|
fi
|
|
|
|
|
2015-07-24 13:39:23 +00:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DBUILD_SHARED_LIBS=1 \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib \
|
2021-03-07 20:28:16 +00:00
|
|
|
-DHAVE_LINUX_API=1 \
|
2015-07-24 13:39:23 +00:00
|
|
|
${CONFIG}
|
|
|
|
make
|
2014-01-09 21:35:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-07-24 13:39:23 +00:00
|
|
|
cd "$pkgname-$pkgname-$pkgver/build"
|
|
|
|
make DESTDIR="$pkgdir" install
|
2014-01-09 21:35:07 +00:00
|
|
|
}
|