mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
35 lines
888 B
Bash
35 lines
888 B
Bash
# Contributor: tomasgroth at yahoo.dk
|
|
|
|
buildarch=16
|
|
|
|
pkgname=libcec-rpi
|
|
pkgver=2.0.1
|
|
pkgrel=1
|
|
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter with support for raspberry pi"
|
|
arch=('armv6h')
|
|
url="https://github.com/Pulse-Eight/libcec"
|
|
license=('GPL')
|
|
depends=('udev' 'lockdev' 'raspberrypi-firmware')
|
|
conflicts=('libcec')
|
|
provides=('libcec')
|
|
source=("libcec-2.0.1.tar.gz::https://github.com/Pulse-Eight/libcec/tarball/libcec-2.0.1")
|
|
_srcfolder=Pulse-Eight-libcec-6be84fc
|
|
sha256sums=('3dc6d7080a98dbfddcab4605a1267c24751b4334a95f845583f34d9f24c9269a')
|
|
options=(!libtool)
|
|
|
|
build() {
|
|
mv "$_srcfolder" "$pkgname-$pkgver"
|
|
|
|
cd "$pkgname-$pkgver"
|
|
autoreconf -vif
|
|
./configure --prefix=/usr --enable-rpi \
|
|
--with-rpi-include-path="/opt/vc/include" \
|
|
--with-rpi-lib-path="/opt/vc/lib"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|