PKGBUILDs/alarm/libcec-imx6/PKGBUILD

57 lines
1.2 KiB
Bash
Raw Normal View History

2014-02-19 15:09:32 +00:00
# Maintainer CruX <CruX@project-insanity.org>
# Contributor: pepedog at archlinuxarm dot com
buildarch=4
pkgname=libcec-imx6
2014-03-24 12:41:04 +00:00
pkgver=13.20140324
2014-02-19 15:09:32 +00:00
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')
2014-02-19 16:36:45 +00:00
makedepends=('git')
2014-02-19 15:09:32 +00:00
# libcec modified by Stephan "wolfgar" Rafin
_gitname="libcec"
2014-03-24 12:41:04 +00:00
_gitroot="git://github.com/xbmc-imx6"
2014-02-19 15:09:32 +00:00
_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
}