summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Reimer2015-06-08 11:00:05 +0200
committerChristopher Reimer2015-06-08 11:00:05 +0200
commit82a44680382fe7f9341f80e89004e7f9b4e705cd (patch)
treef8abf9ef131d5495c27f426b924189ab607a7542
downloadaur-82a44680382fe7f9341f80e89004e7f9b4e705cd.tar.gz
Sync from VDR4Arch (https://github.com/VDR4Arch/vdr4arch/commit/3bf8a4492e3b973a559fd2c53855b231e25c7e74)
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD58
-rw-r--r--dddvb-dkms.install15
3 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1ffd5cd5da4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = dddvb-dkms
+ pkgdesc = Official Digital Devices driver package as DKMS
+ pkgver = 0.9.18beta3
+ pkgrel = 2
+ url = http://download.digital-devices.de/download/linux/
+ install = dddvb-dkms.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = linux-headers
+ depends = dkms
+ provides = dddvb-dkms
+ conflicts = digitaldevices-dvb-drivers
+ conflicts = dvbsky-dvb-drivers
+ conflicts = technotrend-dvb-drivers
+ replaces = digitaldevices-dvb-drivers
+ replaces = dvbsky-dvb-drivers
+ replaces = technotrend-dvb-drivers
+ source = http://download.digital-devices.de/download/linux/dddvb-0.9.18beta3.tar.bz2
+ md5sums = 3f550b8b21710348d46b888d8f2078b3
+
+pkgname = dddvb-dkms
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..82183cffb6f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,58 @@
+# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]
+
+# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
+_pkgbase="dddvb"
+pkgname="dddvb-dkms"
+pkgdesc="Official Digital Devices driver package as DKMS"
+pkgver=0.9.18beta3
+pkgrel=2
+arch=("i686" "x86_64")
+url="http://download.digital-devices.de/download/linux/"
+license=("GPL2")
+depends=("dkms")
+makedepends=('linux-headers')
+replaces=('digitaldevices-dvb-drivers' 'dvbsky-dvb-drivers' 'technotrend-dvb-drivers')
+conflicts=('digitaldevices-dvb-drivers' 'dvbsky-dvb-drivers' 'technotrend-dvb-drivers')
+provides=('dddvb-dkms')
+install="${pkgname}.install"
+source=("http://download.digital-devices.de/download/linux/$_pkgbase-$pkgver.tar.bz2")
+md5sums=('3f550b8b21710348d46b888d8f2078b3')
+
+prepare() {
+ cd "$srcdir"
+ echo "PACKAGE_NAME=\"$_pkgbase\"" > dkms.conf
+ echo "PACKAGE_VERSION=\"$pkgver\"" >> dkms.conf
+ echo 'AUTOINSTALL="yes"' >> dkms.conf
+ echo 'CHECK_MODULE_VERSION="no"' >> dkms.conf
+ echo 'MAKE="make"' >> dkms.conf
+ echo 'CLEAN="make clean"' >> dkms.conf
+
+ cd "$srcdir/$_pkgbase-$pkgver"
+ sed -i '/apps/d' Makefile
+ rm dvb-core/.#dvb_frontend.h
+}
+
+build() {
+ cd "$srcdir/$_pkgbase-$pkgver"
+ make
+
+ # Borrowed from dahdi-linux
+ let "module_number=0" || true
+ for file in $(find ./ -type f -name "*.ko"); do
+ MODULE_LOCATION=$(dirname $file | cut -d\/ -f 2-)
+ echo "BUILT_MODULE_NAME[$module_number]=\"$(basename $file .ko)\"" >> ../dkms.conf
+ echo "BUILT_MODULE_LOCATION[$module_number]=\"$MODULE_LOCATION\"" >> ../dkms.conf
+ echo "DEST_MODULE_LOCATION[$module_number]=\"/extramodules/$pkgname\"" >> ../dkms.conf
+ let "module_number=${module_number}+1" || true
+ done
+
+ make clean
+}
+
+package() {
+ install -D -m 0644 "$srcdir/dkms.conf" "$pkgdir/usr/src/$_pkgbase-$pkgver/dkms.conf"
+
+ cd "$srcdir/$_pkgbase-$pkgver"
+
+ cp -a * "$pkgdir/usr/src/$_pkgbase-$pkgver"
+}
diff --git a/dddvb-dkms.install b/dddvb-dkms.install
new file mode 100644
index 00000000000..cfba51fbb04
--- /dev/null
+++ b/dddvb-dkms.install
@@ -0,0 +1,15 @@
+post_install() {
+ dkms install -m "dddvb/${1%-*}"
+}
+
+pre_upgrade() {
+ dkms remove -m "dddvb/${2%-*}" --all
+}
+
+post_upgrade() {
+ dkms install -m "dddvb/${1%-*}"
+}
+
+pre_remove() {
+ dkms remove -m "dddvb/${1%-*}" --all
+}