mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
4357e40b54
Add aarch64 in prep of kodi-rpi-git for aarch64
50 lines
1.3 KiB
Bash
50 lines
1.3 KiB
Bash
# $Id$
|
|
# 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>
|
|
# - RPi support, no Exynos
|
|
|
|
buildarch=28
|
|
|
|
pkgname=libcec-rpi
|
|
_pkgname=libcec
|
|
pkgver=6.0.2
|
|
pkgrel=2
|
|
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter (Raspberry Pi)"
|
|
arch=('armv6h' 'armv7h' 'aarch64')
|
|
url="http://libcec.pulse-eight.com/"
|
|
license=('GPL')
|
|
makedepends=('cmake')
|
|
depends=('udev' 'lockdev' 'p8-platform' 'libxrandr' 'raspberrypi-firmware')
|
|
provides=('libcec')
|
|
conflicts=('libcec')
|
|
source=("$_pkgname-$pkgver.tar.gz::https://github.com/Pulse-Eight/$_pkgname/archive/$_pkgname-$pkgver.tar.gz")
|
|
sha256sums=('090696d7a4fb772d7acebbb06f91ab92e025531c7c91824046b9e4e71ecb3377')
|
|
|
|
build() {
|
|
cd "$_pkgname-$_pkgname-$pkgver"
|
|
|
|
unset LDFLAGS
|
|
|
|
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 \
|
|
-DHAVE_EXYNOS_API=0 \
|
|
-DHAVE_RPI_API=1 \
|
|
-DRPI_INCLUDE_DIR=/opt/vc/include \
|
|
-DRPI_LIB_DIR=/opt/vc/lib
|
|
make
|
|
|
|
}
|
|
|
|
package() {
|
|
cd "$_pkgname-$_pkgname-$pkgver/build"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|