2014-01-09 21:35:07 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
|
|
|
|
# Contributor: Philippe Cherel <philippe.cherel@mayenne.org>
|
2015-07-24 13:39:23 +00:00
|
|
|
# vim: ft=sh:
|
2014-01-09 21:35:07 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2015-07-24 18:15:48 +00:00
|
|
|
# - Exynos support on v7
|
|
|
|
|
|
|
|
buildarch=14
|
2014-01-09 21:35:07 +00:00
|
|
|
|
|
|
|
pkgname=libcec
|
2016-02-03 00:39:57 +00:00
|
|
|
pkgver=3.1.0
|
|
|
|
pkgrel=1
|
2014-01-09 21:35:07 +00:00
|
|
|
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://libcec.pulse-eight.com/"
|
|
|
|
license=('GPL')
|
2015-07-24 13:39:23 +00:00
|
|
|
makedepends=('cmake')
|
|
|
|
depends=('udev' 'lockdev' 'libplatform' 'libxrandr')
|
2014-11-06 13:39:55 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/Pulse-Eight/$pkgname/archive/$pkgname-$pkgver.tar.gz")
|
2016-02-03 00:39:57 +00:00
|
|
|
sha256sums=('09109d21a1b03f42c9e341d12600f2e4c41038d640269fa75408e2d36126f921')
|
2014-01-09 21:35:07 +00:00
|
|
|
|
|
|
|
build() {
|
2015-07-24 13:39:23 +00:00
|
|
|
cd "$pkgname-$pkgname-$pkgver"
|
2014-01-09 21:35:07 +00:00
|
|
|
|
2015-07-24 13:39:23 +00:00
|
|
|
if [[ $CARCH == 'armv7h' ]]; then
|
|
|
|
CONFIG='-DHAVE_EXYNOS_API=1'
|
|
|
|
fi
|
2014-01-09 21:35:07 +00:00
|
|
|
|
2015-07-24 13:39:23 +00:00
|
|
|
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 \
|
|
|
|
${CONFIG}
|
|
|
|
make
|
2014-01-09 21:35:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-07-24 13:39:23 +00:00
|
|
|
cd "$pkgname-$pkgname-$pkgver/build"
|
|
|
|
make DESTDIR="$pkgdir" install
|
2014-01-09 21:35:07 +00:00
|
|
|
}
|