diff options
author | hexa- | 2017-03-03 00:23:20 +0100 |
---|---|---|
committer | hexa- | 2017-03-03 00:23:20 +0100 |
commit | 44a077d7e687c41631914c97be7e3d2941903ff9 (patch) | |
tree | 00df2f74caa92676e264a53c0b243e49916830e4 | |
download | aur-44a077d7e687c41631914c97be7e3d2941903ff9.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 29 | ||||
-rw-r--r-- | dkms.conf | 10 |
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5f12880827b8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = batman-adv-dkms-git + pkgdesc = batman kernel module (dkms package) + pkgver = v2017.0.8.g5283463 + pkgrel = 1 + url = https://www.open-mesh.org/projects/batman-adv + arch = any + license = GPL + depends = dkms + provides = batman-adv + source = batman-adv::git+https://git.open-mesh.org/batman-adv.git#branch=master + source = dkms.conf + sha256sums = SKIP + sha256sums = af072d643fb0587c8a5af4c7faf0d9a9cb73f3515a3b79853c60d98a30743ab2 + +pkgname = batman-adv-dkms-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6a6c3384ce97 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=batman-adv-dkms-git +pkgver=v2017.0.8.g5283463 +pkgrel=1 +pkgdesc='batman kernel module (dkms package)' +arch=('any') +provides=('batman-adv') +url='https://www.open-mesh.org/projects/batman-adv' +license=('GPL') +source=( + "batman-adv::git+https://git.open-mesh.org/batman-adv.git#branch=master" + 'dkms.conf' +) +sha256sums=('SKIP' + 'af072d643fb0587c8a5af4c7faf0d9a9cb73f3515a3b79853c60d98a30743ab2') +depends=('dkms') + +pkgver() { + cd "${srcdir}/batman-adv" + git describe --tags | sed 's/-/./g' +} + +package() { + install -dm755 "${pkgdir}/usr/src/${pkgbase}-${pkgver}/" + + cp -r "${srcdir}"/batman-adv/* "${pkgdir}/usr/src/${pkgbase}-${pkgver}/" + + install -Dm644 "${srcdir}/dkms.conf" "${pkgdir}/usr/src/${pkgbase}-${pkgver}/" + sed -i "s/#MODULE_VERSION#/${pkgver}/" "${pkgdir}/usr/src/${pkgbase}-${pkgver}/dkms.conf" +} diff --git a/dkms.conf b/dkms.conf new file mode 100644 index 000000000000..256a8a98905f --- /dev/null +++ b/dkms.conf @@ -0,0 +1,10 @@ +PACKAGE_NAME='batman-adv' +PACKAGE_VERSION="#MODULE_VERSION#" + +BUILT_MODULE_NAME[0]="batman-adv" +BUILT_MODULE_LOCATION[0]="build/net/batman-adv/" +DEST_MODULE_LOCATION[0]="/kernel/net/batman-adv/" +AUTOINSTALL=yes + +MAKE[0]="make KERNELPATH=${kernel_source_dir}" +CLEAN="make KERNELPATH=${kernel_source_dir} clean" |