PKGBUILDs/alarm/libcec-rpi/PKGBUILD

40 lines
1.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
pkgver=2.0.4
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.4.tar.gz::https://github.com/Pulse-Eight/libcec/tarball/libcec-2.0.4" "fix-boot_t.patch")
_srcfolder=Pulse-Eight-libcec-178d498
sha256sums=('652f8bddf8629eb4d14c93bc97efbeb7406482f69626302c8489df8e1fd8431f'
'ba9b4030f3c2aa092a7c513629b60e82eeca7daf044576fa89b117409a8e883f')
options=(!libtool)
build() {
mv "$_srcfolder" "$pkgname-$pkgver"
cd "$pkgname-$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() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}