summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Chabaud2015-07-09 07:45:37 +0200
committerThomas Chabaud2015-07-09 07:45:37 +0200
commitd0934bcfdc758e5a0e03691f524bf333d8651e93 (patch)
tree022dfc6875ff3a972143066b92b61c477b05917b
downloadaur-d0934bcfdc758e5a0e03691f524bf333d8651e93.tar.gz
Initial import
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD28
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5029e6c77a4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = openelec-dvb-firmware
+ pkgdesc = Set of dvb firmwares from OpenElec project
+ pkgver = 88.4ded321
+ pkgrel = 1
+ url = https://github.com/OpenELEC/dvb-firmware.git
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git diffutils
+ source = git+https://github.com/OpenELEC/dvb-firmware.git
+ md5sums = SKIP
+
+pkgname = openelec-dvb-firmware
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..aa84dfab06d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+pkgname=openelec-dvb-firmware
+_pkgver=0.0.1
+pkgver=88.4ded321
+pkgrel=1
+pkgdesc="Set of dvb firmwares from OpenElec project"
+arch=('i686' 'x86_64')
+url="https://github.com/OpenELEC/dvb-firmware.git"
+license=('GPL3')
+makedepends=('git diffutils')
+
+_gitname=dvb-firmware
+source=("git+https://github.com/OpenELEC/${_gitname}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${_gitname}"
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+package() {
+ TARGET_DIR="${pkgdir}/usr/lib/firmware"
+ mkdir -p $TARGET_DIR
+ FIRMWARE_FILES=$(diff -rq "${_gitname}/firmware" /lib/firmware |grep "Only in ${_gitname}/firmware" |awk -F ": " '{ print $2 }' |tr '\n' ' ')
+ for f in $FIRMWARE_FILES
+ do
+ cp "${_gitname}/firmware/$f" $TARGET_DIR
+ done
+}