summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Morgner2017-10-26 19:26:09 +0200
committerFelix Morgner2017-10-26 19:26:44 +0200
commit540f27b2866fc340136cc21c5029f2638e3b70b0 (patch)
treee919f08ea7fd89202ba1fa70bc6e92ba611ecdbf
downloadaur-540f27b2866fc340136cc21c5029f2638e3b70b0.tar.gz
cyber-dkms: initial release
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD37
-rw-r--r--dkms.conf6
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..abf90bdba43
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = cyber-dkms
+ pkgdesc = CYBER for your system (DKMS)
+ pkgver = 42.1729
+ pkgrel = 1
+ url = https://github.com/fmorgner/dev-cyber
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ depends = dkms
+ source = https://github.com/fmorgner/dev-cyber/archive/v42.1729.tar.gz
+ source = dkms.conf
+ sha256sums = 4f0a1bf71273536ea4441c9c67d2a5765b1b0a49a3de6b839b8e4b5a3fd22545
+ sha256sums = ffb6ceffebde8148c2a094e8375d3ee1f98798a7202368df668e77317db31f33
+
+pkgname = cyber-dkms
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..74896dafe56
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Felix Morgner <felix.morgner@gmail.com>
+
+_pkgname=cyber
+pkgname=${_pkgname}-dkms
+pkgver=42.1729
+pkgrel=1
+pkgdesc="CYBER for your system (DKMS)"
+arch=('i686' 'x86_64')
+url="https://github.com/fmorgner/dev-cyber"
+license=('GPL2')
+depends=('dkms')
+source=("https://github.com/fmorgner/dev-cyber/archive/v${pkgver}.tar.gz"
+ "dkms.conf")
+sha256sums=('4f0a1bf71273536ea4441c9c67d2a5765b1b0a49a3de6b839b8e4b5a3fd22545'
+ 'ffb6ceffebde8148c2a094e8375d3ee1f98798a7202368df668e77317db31f33')
+
+package() {
+ cd "${srcdir}"
+
+ local install_dir="${pkgdir}/usr/src/${_pkgname}-${pkgver}"
+
+ install -Dm644 dkms.conf "${install_dir}/dkms.conf"
+
+ sed -e "s/@_PKGBASE@/${_pkgname}/" \
+ -e "s/@PKGVER@/${pkgver}/" \
+ -i "${install_dir}/dkms.conf"
+
+ cd "dev-${_pkgname}-${pkgver}"
+
+ for d in $(find . -type d); do
+ install -dm755 "${install_dir}/$d"
+ done
+
+ for f in $(find . -type f); do
+ install -m644 "$f" "${install_dir}/$f"
+ done
+}
diff --git a/dkms.conf b/dkms.conf
new file mode 100644
index 00000000000..deac3ead72c
--- /dev/null
+++ b/dkms.conf
@@ -0,0 +1,6 @@
+PACKAGE_NAME="@_PKGBASE@"
+PACKAGE_VERSION="@PKGVER@"
+MAKE[0]="make"
+BUILT_MODULE_NAME[0]="@_PKGBASE@"
+DEST_MODULE_LOCATION[0]="/extra"
+AUTOINSTALL="yes"