PKGBUILDs/alarm/libcec-rpi/PKGBUILD

58 lines
1.6 KiB
Bash
Raw Normal View History

2015-02-10 04:51:11 +00:00
# $Id$
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
# Contributor: Philippe Cherel <philippe.cherel@mayenne.org>
2015-07-24 15:02:32 +00:00
# vim: ft=sh:
2015-02-10 04:51:11 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - RPi support, no Exynos
buildarch=20
pkgname=libcec-rpi
_pkgname=libcec
2015-07-24 15:02:32 +00:00
pkgver=3.0.1
pkgrel=3
2015-02-10 04:51:11 +00:00
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')
2015-07-24 15:02:32 +00:00
makedepends=('cmake')
depends=('udev' 'lockdev' 'libplatform' 'libxrandr' 'raspberrypi-firmware')
2015-02-10 04:51:11 +00:00
provides=('libcec')
2015-02-10 13:11:40 +00:00
conflicts=('libcec')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/Pulse-Eight/$_pkgname/archive/$_pkgname-$pkgver.tar.gz"
'https://github.com/Pulse-Eight/libcec/commit/2f32a9debc1f148b5dfcfc463480f1432bb71725.patch')
sha256sums=('7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e'
'83ca3b742831aa2e05297d11e238a0b0d1035a6404f60a6610acc8381d1c17ea')
prepare() {
cd "$_pkgname-$_pkgname-$pkgver"
patch -Np1 -i "$srcdir/2f32a9debc1f148b5dfcfc463480f1432bb71725.patch"
}
2015-02-10 04:51:11 +00:00
build() {
2015-07-24 15:02:32 +00:00
cd "$_pkgname-$_pkgname-$pkgver"
2015-02-10 04:51:11 +00:00
2015-07-24 15:02:32 +00:00
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
2015-02-10 04:51:11 +00:00
}
package() {
2015-07-24 15:22:38 +00:00
cd "$_pkgname-$_pkgname-$pkgver/build"
2015-07-24 15:02:32 +00:00
make DESTDIR="$pkgdir" install
2015-02-10 04:51:11 +00:00
}