alarm/libcec-rpi to 3.0.1-1

This commit is contained in:
David Beauchamp 2015-07-24 11:02:32 -04:00
parent d7ef5f08a5
commit ce43df27de

View file

@ -1,6 +1,7 @@
# $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
@ -9,29 +10,41 @@ buildarch=20
pkgname=libcec-rpi
_pkgname=libcec
pkgver=2.2.0
pkgrel=2
pkgver=3.0.1
pkgrel=1
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter (Raspberry Pi)"
arch=('i686' 'x86_64')
url="http://libcec.pulse-eight.com/"
license=('GPL')
depends=('udev' 'lockdev' 'raspberrypi-firmware')
makedepends=('cmake')
depends=('udev' 'lockdev' 'libplatform' 'libxrandr' 'raspberrypi-firmware')
provides=('libcec')
conflicts=('libcec')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/Pulse-Eight/$_pkgname/archive/$_pkgname-$pkgver.tar.gz")
sha256sums=('fd4f47a18d6e0f4b9e6f5831280207ee2b2a5fc2741ae32ae09ad12a8aa52917')
sha256sums=('7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e')
build() {
cd "$_pkgname-$_pkgname-$pkgver"
autoreconf -vif
cd "$_pkgname-$_pkgname-$pkgver"
unset LDFLAGS
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
./configure --prefix=/usr --disable-exynos --enable-rpi --with-rpi-include-path=/opt/vc/include --with-rpi-lib-path=/opt/vc/lib
make
}
package() {
cd "$_pkgname-$_pkgname-$pkgver"
make DESTDIR="$pkgdir" install
cd "$pkgname-$pkgname-$pkgver/build"
make DESTDIR="$pkgdir" install
}