mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/libcec to 3.0.1-1.1
This commit is contained in:
parent
690085d905
commit
43bcf0300a
1 changed files with 4 additions and 13 deletions
|
@ -4,11 +4,13 @@
|
|||
# vim: ft=sh:
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - Exynos and RPi support
|
||||
# - Exynos support on v7
|
||||
|
||||
buildarch=14
|
||||
|
||||
pkgname=libcec
|
||||
pkgver=3.0.1
|
||||
pkgrel=1
|
||||
pkgrel=1.1
|
||||
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://libcec.pulse-eight.com/"
|
||||
|
@ -18,22 +20,11 @@ depends=('udev' 'lockdev' 'libplatform' 'libxrandr')
|
|||
source=("$pkgname-$pkgver.tar.gz::https://github.com/Pulse-Eight/$pkgname/archive/$pkgname-$pkgver.tar.gz")
|
||||
sha256sums=('7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e')
|
||||
|
||||
if [[ $CARCH = 'armv6h' ]]; then
|
||||
depends+=('raspberrypi-firmware')
|
||||
replaces=('libcec-rpi')
|
||||
provides=('libcec-rpi')
|
||||
fi
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgname-$pkgver"
|
||||
|
||||
if [[ $CARCH == 'armv7h' ]]; then
|
||||
CONFIG='-DHAVE_EXYNOS_API=1'
|
||||
elif [[ $CARCH == 'armv6h' ]]; then
|
||||
CONFIG='-DHAVE_EXYNOS_API=0 -DHAVE_RPI_API=1 -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib'
|
||||
unset LDFLAGS
|
||||
elif [[ $CARCH == 'arm' ]]; then
|
||||
CONFIG='-DHAVE_EXYNOS_API=0'
|
||||
fi
|
||||
|
||||
mkdir build
|
||||
|
|
Loading…
Reference in a new issue