mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
57 lines
1.1 KiB
Bash
57 lines
1.1 KiB
Bash
|
# Maintainer CruX <CruX@project-insanity.org>
|
||
|
# Contributor: pepedog at archlinuxarm dot com
|
||
|
|
||
|
buildarch=4
|
||
|
|
||
|
pkgname=libcec-imx6
|
||
|
pkgver=13.20130928
|
||
|
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')
|
||
|
|
||
|
|
||
|
# libcec modified by Stephan "wolfgar" Rafin
|
||
|
_gitname="libcec"
|
||
|
_gitroot="git://github.com/wolfgar"
|
||
|
_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
|
||
|
}
|