alarm/libcec-cubox update to 2.4.1

This commit is contained in:
Dave Higham 2014-05-14 14:42:39 +01:00
parent 5d7f3edcaf
commit 577ebe6a47
2 changed files with 60 additions and 10 deletions

View file

@ -0,0 +1,47 @@
# Create symlinks for i.mx keypads and touchscreens
SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="mxckpd", SYMLINK+="input/keyboard0"
SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="mxc_ts", SYMLINK+="input/ts0"
SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="imx_adc_ts", SYMLINK+="input/ts0"
SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="mpr084", SYMLINK+="input/keyboard0"
SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="tsc2007", SYMLINK+="input/ts0"
SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="STMP3XXX touchscreen", SYMLINK+="input/ts0"
SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="MXS touchscreen", SYMLINK+="input/ts0"
SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="HannStar P1003 Touchscreen", SYMLINK+="input/ts0"
SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="eGalax Touch Screen", SYMLINK+="input/ts0"
KERNEL=="event*", NAME="input/%k", MODE="666"
KERNEL=="event*", SUBSYSTEM=="input", GROUP="tty", MODE="0666"
SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0666"
KERNEL=="mxc_hdmi", SUBSYSTEM=="mxc_hdmi", GROUP="video", MODE="0666"
KERNEL=="mxc_hdmi_cec", SUBSYSTEM=="mxc_hdmi_cec", GROUP="video", MODE="0666"
# The long class name gets cut off to be mc13783_connectiv in
# /sys/class/mc13783_connectivity/mc13783_connectivit
KERNEL=="mc13783_connectiv*", NAME="mc13783_connectivity"
# Anyone has readonly permission to IIM device file
KERNEL=="mxc_iim", MODE="0666", SYMLINK+="mxc_mem"
KERNEL=="mxs_viim", MODE="0666", SYMLINK+="mxc_mem"
KERNEL=="mxc_ipu", MODE="0666"
KERNEL=="fb0", MODE="0666"
KERNEL=="fb1", MODE="0666"
KERNEL=="fb2", MODE="0666"
KERNEL=="mxc_vpu", MODE="0666"
SUBSYSTEM=="video", MODE="0666"
KERNEL=="gsl_kmod", MODE="0666"
KERNEL=="galcore", MODE="0666"
KERNEL=="mxc_galcore", MODE="0666"
KERNEL=="mxc_asrc", MODE="0666"
SUBSYSTEM=="video", MODE="0666"
SUBSYSTEM=="sound", MODE="0666"
SUBSYSTEM=="video4linux", MODE="0666"
# ALSA devices
SUBSYSTEM=="sound", GROUP="audio"
SUBSYSTEM=="snd", GROUP="audio"
KERNEL=="control*", NAME="snd/%k", MODE="0666"
KERNEL=="pcm*", NAME="snd/%k", MODE="0666"
KERNEL=="timer", NAME="snd/%k", MODE="0666"
# Set bluetooth power up
ACTION=="add", KERNEL=="hci0", RUN+="/usr/bin/hciconfig hci0 up"

View file

@ -3,27 +3,29 @@
buildarch=4
pkgname="libcec-cubox"
pkgver=2.1.1
pkgver=2.4.1
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')
makedepends=('linux-cubox-headers')
conflicts=('libcec')
provides=('libcec')
source=("libcec-${pkgver}.tar.gz::https://github.com/Pulse-Eight/libcec/tarball/libcec-${pkgver}")
sha256sums=('085cabf38bbe82c0a1c78fc4a0cc318b3c4f5fadae325b3d648821d2a4bf694d')
_srcfolder=Pulse-Eight-libcec-605d913
_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'
'8be7299d59c0892b0566f8df30286c27796f3fd5106483ffcfcde9430054cce0')
options=(!libtool)
build() {
mv "$_srcfolder" "$pkgname-$pkgver"
_kernel_release="$(pacman -Q linux-cubox-headers | grep -Eo "[^\ ]+$")-ARCH"
_kernel_release="$(pacman -Q linux-headers-cubox | grep -Eo "[^\ ]+$")-ARCH+"
cd "$pkgname-$pkgver"
cd "libcec-$_commit"
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
export LDFLAGS="$LDFLAGS -fPIC"
@ -34,7 +36,8 @@ build() {
}
package() {
cd "$pkgname-$pkgver"
cd "libcec-$_commit"
make DESTDIR="$pkgdir" install
install -D -m0644 "${srcdir}/99-libcec.rules" "${pkgdir}/etc/udev/rules.d/99-libcec.rules"
}