# Maintainer CruX # Contributor: pepedog at archlinuxarm dot com buildarch=4 pkgname=libcec-imx6 pkgver=13.20140426 pkgrel=1 pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter with support for i.MX6 based devices" arch=('armv7h') url="https://github.com/Pulse-Eight/libcec" license=('GPL') depends=('udev' 'lockdev') conflicts=('libcec') provides=('libcec') makedepends=('git') # libcec modified by Stephan "wolfgar" Rafin _gitname="libcec" _gitroot="git://github.com/xbmc-imx6" _gitbranch="master" prepare() { cd "${srcdir}" msg2 "Connecting to GIT server..." if [[ -d "${_gitname}" ]]; then cd "${_gitname}" && git pull origin "$_gitbranch" msg2 "The local files are updated." else git clone --branch ${_gitbranch} --depth 1 "${_gitroot}/${_gitname}" fi msg2 "GIT checkout done or server timeout." } build() { cd "${srcdir}/${_gitname}" autoreconf -vif # Fix this as soon as its fixed in upstream export CXXFLAGS="-fpermissive" ./configure --prefix=/usr --enable-imx6 make } package() { cd "${srcdir}/${_gitname}" # Running make install make DESTDIR="${pkgdir}" install }