diff --git a/alarm/aml-libs-c1/99-amlogic.rules b/alarm/aml-libs-c1/99-amlogic.rules new file mode 100644 index 000000000..6e8f11b67 --- /dev/null +++ b/alarm/aml-libs-c1/99-amlogic.rules @@ -0,0 +1,18 @@ +# Fix permissions for /dev/am* files +KERNEL=="amaudio_ctl", MODE="0666" +KERNEL=="amaudio_in", MODE="0666" +KERNEL=="amaudio_out", MODE="0666" +KERNEL=="amaudio_utils", MODE="0666" +KERNEL=="amhdmitx0", MODE="0666" +KERNEL=="amremote", MODE="0666" +KERNEL=="amstream_abuf", MODE="0666" +KERNEL=="amstream_hevc", MODE="0666" +KERNEL=="amstream_mpps", MODE="0666" +KERNEL=="amstream_mpts", MODE="0666" +KERNEL=="amstream_rm", MODE="0666" +KERNEL=="amstream_sub", MODE="0666" +KERNEL=="amstream_sub_read", MODE="0666" +KERNEL=="amstream_userdata", MODE="0666" +KERNEL=="amstream_vbuf", MODE="0666" +KERNEL=="amsubtitle", MODE="0666" +KERNEL=="amvideo", MODE="0666" diff --git a/alarm/aml-libs-c1/PKGBUILD b/alarm/aml-libs-c1/PKGBUILD index 9479bf82d..c031d9d1c 100644 --- a/alarm/aml-libs-c1/PKGBUILD +++ b/alarm/aml-libs-c1/PKGBUILD @@ -1,19 +1,22 @@ # ODROID-C1 Amlogic libraries # Maintainer: Kevin Mihelich +# Contributor: Jan Holthuis buildarch=4 pkgname=aml-libs-c1 pkgver=r11.820b12a -pkgrel=4 +pkgrel=5 arch=('armv7h') pkgdesc="ODROID-C1 Amlogic Libraries" url="http://www.hardkernel.com/" license=('Proprietary') depends=('alsa-lib') makedepends=('git') -source=("git+https://github.com/mdrjr/c1_aml_libs.git") -md5sums=('SKIP') +source=("git+https://github.com/mdrjr/c1_aml_libs.git" + '99-amlogic.rules') +md5sums=('SKIP' + 'c8f7f6b83416768cc9424f7e7a372fa4') pkgver() { cd c1_aml_libs @@ -42,4 +45,7 @@ package() { install -m644 amcodec/include/*.h "${pkgdir}/usr/include" install -m644 amcodec/include/amports/*.h "${pkgdir}/usr/include/amports" install -m644 amcodec/include/ppmgr/*.h "${pkgdir}/usr/include/ppmgr" + + # install /dev/am* permission fix + install -Dm644 "${srcdir}/99-amlogic.rules" "${pkgdir}/usr/lib/udev/rules.d/99-amlogic.rules" }