summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKenneth Endfinger2018-01-17 15:52:32 -0500
committerKenneth Endfinger2018-01-17 15:52:32 -0500
commit23ffb47b75617a0806adb3640e03258d9353b26a (patch)
tree53fc526242dae6e0d7c6204feca100a8c435517b /PKGBUILD
downloadaur-23ffb47b75617a0806adb3640e03258d9353b26a.tar.gz
Initial Commit of v0.9.0 of udmabuf-dkms
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..831996a6d66e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer <kaendfinger@gmail.com>
+
+_pkgbase=udmabuf
+pkgname=udmabuf-dkms
+pkgver=0.9.0
+pkgrel=1
+pkgdesc="Userspace DMA Buffers"
+arch=('i686' 'x86_64' 'armhf')
+url="https://github.com/ikwzm/udmabuf"
+license=('GPL2')
+depends=('dkms')
+conflicts=("${_pkgbase}")
+source=(
+ "https://github.com/ikwzm/udmabuf/archive/v${pkgver}.tar.gz"
+ "dkms.conf"
+)
+
+md5sums=('c73aca7abc1c5c71a7bf8fc6a79d3edf'
+ '4c6290fe3ff6260cf66b1463158896df')
+
+prepare() {
+ mkdir -p "${srcdir}/udmabuf"
+ tar zxf "${srcdir}/v${pkgver}.tar.gz" -C "${srcdir}/udmabuf" --strip-components=1
+}
+
+package() {
+ install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
+
+ sed -e "s/@_PKGBASE@/${_pkgbase}/" \
+ -e "s/@PKGVER@/${pkgver}/" \
+ -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
+ cp -r "${srcdir}/udmabuf"/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
+}