PKGBUILDs/alarm/libcec-cubox/PKGBUILD

41 lines
1.1 KiB
Bash
Raw Normal View History

2012-10-19 20:54:09 +00:00
# Contributor: tomasgroth at yahoo.dk
buildarch=4
pkgname="libcec-cubox"
2013-03-14 00:11:24 +00:00
pkgver=2.1.1
2012-10-19 20:54:09 +00:00
pkgrel=1
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')
makedepends=('linux-headers-cubox')
conflicts=('libcec')
provides=('libcec')
2012-12-02 23:25:16 +00:00
source=("libcec-${pkgver}.tar.gz::https://github.com/Pulse-Eight/libcec/tarball/libcec-${pkgver}")
2013-03-14 00:11:24 +00:00
sha256sums=('085cabf38bbe82c0a1c78fc4a0cc318b3c4f5fadae325b3d648821d2a4bf694d')
_srcfolder=Pulse-Eight-libcec-605d913
2012-10-19 20:54:09 +00:00
options=(!libtool)
build() {
mv "$_srcfolder" "$pkgname-$pkgver"
2012-10-25 22:57:33 +00:00
_kernel_release="$(pacman -Q linux-headers-cubox | grep -Eo "[^\ ]+$")-ARCH+"
2012-10-19 20:54:09 +00:00
cd "$pkgname-$pkgver"
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() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}