blob: 347860b85e6fd922686497f235d14e90a1928571 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
pkgname=batman-adv-dkms-git
pkgver=v2022.3.2.gbe105696
pkgrel=1
pkgdesc='batman kernel module (dkms package)'
arch=('any')
provides=('batman-adv')
conflicts=('batman-adv-dkms')
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"
}
|