PKGBUILDs/alarm/libcec-rpi/PKGBUILD

38 lines
1 KiB
Bash
Raw Normal View History

# $Id$
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
# Contributor: Philippe Cherel <philippe.cherel@mayenne.org>
2012-09-29 18:31:38 +00:00
buildarch=16
pkgname=libcec-rpi
2013-03-22 21:52:20 +00:00
pkgver=2.1.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')
2013-03-22 21:52:20 +00:00
source=("https://github.com/Pulse-Eight/libcec/archive/libcec-$pkgver.tar.gz" "fix-boot_t.patch")
sha256sums=('f61378798d900d496ed3a5ff7747b0bb35bdfec9b5c4168dcea38396e3569bf1'
'ba9b4030f3c2aa092a7c513629b60e82eeca7daf044576fa89b117409a8e883f')
options=(!libtool)
build() {
2013-03-22 21:52:20 +00:00
cd "libcec-libcec-$pkgver"
patch -p1 -i ../fix-boot_t.patch
autoreconf -vif
./configure --prefix=/usr --enable-rpi \
--with-rpi-include-path="/opt/vc/include" \
--with-rpi-lib-path="/opt/vc/lib"
make
}
package() {
2013-03-22 21:52:20 +00:00
cd "libcec-libcec-$pkgver"
make DESTDIR="$pkgdir" install
}