PKGBUILDs/alarm/libcec-cubox/PKGBUILD

44 lines
1.3 KiB
Bash
Raw Normal View History

2012-10-19 20:54:09 +00:00
# Contributor: tomasgroth at yahoo.dk
buildarch=4
pkgname="libcec-cubox"
2014-05-14 13:42:39 +00:00
pkgver=2.4.1
pkgrel=2
2012-10-19 20:54:09 +00:00
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter with support for cubox"
arch=('armv7h')
url="https://github.com/Pulse-Eight/libcec"
license=('GPL')
depends=('udev' 'lockdev')
2014-05-14 13:42:39 +00:00
makedepends=('linux-cubox-headers')
2012-10-19 20:54:09 +00:00
conflicts=('libcec')
provides=('libcec')
2014-05-14 13:42:39 +00:00
_commit=30d91946a284571ac9f56c5190ea78e279807a44
#source=("libcec-${pkgver}.tar.gz::https://github.com/Pulse-Eight/libcec/archive/${_commit}.tar.gz"
source=("libcec-${pkgver}.tar.gz::https://github.com/Pulse-Eight/libcec/archive/${_commit}.tar.gz"
"99-libcec.rules")
sha256sums=('e4c0ef40d68130caf5c411c213a46f99d2897406b0492d2efba3a975a3bdf8c7'
'fb4f721a9bd0e40253c71dc1827410c8c98853dcf2e8cf95a654feb60da8f5e6')
2014-05-14 13:42:39 +00:00
2012-10-19 20:54:09 +00:00
options=(!libtool)
build() {
2014-05-14 13:42:39 +00:00
_kernel_release="$(pacman -Q linux-cubox-headers | grep -Eo "[^\ ]+$")-ARCH"
2012-10-19 20:54:09 +00:00
2014-05-14 13:42:39 +00:00
cd "libcec-$_commit"
2013-03-14 00:11:24 +00:00
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
export LDFLAGS="$LDFLAGS -fPIC"
2012-10-19 20:54:09 +00:00
autoreconf -vif
2013-03-14 00:11:24 +00:00
./configure --prefix=/usr --enable-cubox \
2012-10-19 20:54:09 +00:00
--with-tda995x-toolkit-path="/usr/src/linux-${_kernel_release}/include/nxp_hdmi"
make
}
package() {
2014-05-14 13:42:39 +00:00
cd "libcec-$_commit"
2012-10-19 20:54:09 +00:00
make DESTDIR="$pkgdir" install
2014-05-14 13:42:39 +00:00
install -D -m0644 "${srcdir}/99-libcec.rules" "${pkgdir}/etc/udev/rules.d/99-libcec.rules"
2012-10-19 20:54:09 +00:00
}