mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
|
|
# Contributor: Philippe Cherel <philippe.cherel@mayenne.org>
|
|
# vim: ft=sh:
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - Exynos support on v7
|
|
# - Amlogic support on v8
|
|
|
|
buildarch=14
|
|
|
|
pkgname=libcec
|
|
pkgver=4.0.4
|
|
pkgrel=2
|
|
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter"
|
|
arch=('x86_64')
|
|
url="http://libcec.pulse-eight.com/"
|
|
license=('GPL')
|
|
makedepends=('cmake')
|
|
depends=('udev' 'p8-platform' 'libxrandr')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/Pulse-Eight/$pkgname/archive/$pkgname-$pkgver.tar.gz")
|
|
sha256sums=('4382a964bf8c511c22c03cdab5ba2d81c241536e6479072a61516966804f400a')
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgname-$pkgver"
|
|
|
|
if [[ $CARCH == 'armv7h' ]]; then
|
|
CONFIG='-DHAVE_EXYNOS_API=1'
|
|
fi
|
|
|
|
if [[ $CARCH == 'aarch64' ]]; then
|
|
CONFIG='-DHAVE_AOCEC_API=1'
|
|
fi
|
|
|
|
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 \
|
|
${CONFIG}
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgname-$pkgver/build"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|