mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
48 lines
1.5 KiB
Bash
48 lines
1.5 KiB
Bash
# $Id$
|
|
# Maintainer: graysky <graysky AT proton DOT me>
|
|
# Contributor: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
|
|
# Contributor: Philippe Cherel <philippe.cherel@mayenne.org>
|
|
# vim: ft=sh:
|
|
|
|
# For this to work with kodi using kms which is the expected driver, we can no
|
|
# longer build with RPI support.
|
|
# vc4-kms-v3d exposes CEC through the kernel CEC API (/dev/cec0 and /dev/cec1)
|
|
# vc4-fkms-v3d uses the Pi specific VCHIQ service
|
|
# see https://github.com/raspberrypi/linux/issues/4103
|
|
|
|
pkgname=libcec-rpi
|
|
_pkgname=libcec
|
|
pkgver=6.0.2
|
|
pkgrel=4
|
|
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter (Raspberry Pi using kms)"
|
|
arch=('armv6h' 'armv7h' 'aarch64')
|
|
url="http://libcec.pulse-eight.com/"
|
|
license=('GPL')
|
|
makedepends=('cmake')
|
|
depends=('udev' 'lockdev' 'p8-platform' 'libxrandr' 'raspberrypi-utils')
|
|
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"
|
|
|
|
mkdir build
|
|
cd build
|
|
_args=(
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
-DBUILD_SHARED_LIBS=1
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib
|
|
-DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib
|
|
-DHAVE_LINUX_API=1
|
|
)
|
|
cmake "${_args[@]}" ..
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$_pkgname-$_pkgname-$pkgver/build"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|