summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9bb5eb9cdb02fc3c50c6353830ef6d64ece6ee15 (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
31
32
33
34
35
36
37
38
# Maintainer: Felix Golatofski <contact@xdfr.de>
# Contributor: Thomas WeiƟschuh <thomas t-8ch de>
# Contributor: RubenKelevra <ruben@vfn-nrw.de>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=batman-adv
pkgver=2020.3
pkgrel=1
epoch=1
pkgdesc='Batman kernel module'
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url='https://www.open-mesh.net/'
license=('GPL')
depends=('libnl')
makedepends=('linux-headers')
install='batman-adv.install'
source=("https://downloads.open-mesh.org/batman/releases/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz"
        'batman-adv.install'
)
depends=('linux')
makedepends=('linux-headers')
sha256sums=('65516dca919ea5be58d141c78bd1f0a94a02a784c5c85fb4e8f27f4226803f73'
            '347599c02426a905690002885c277f91b82da2b29d3372348e5f02d03c435c37')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  export CFLAGS="${CFLAGS} -fplt"
  echo $CFLAGS
  make KERNELPATH=/usr/lib/modules/$(uname -r)/build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -D -m644 net/batman-adv/batman-adv.ko "${pkgdir}/usr/lib/modules/$(uname -r)/updates/net/batman-adv/batman_adv.ko"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.external.rst \
    CHANGELOG.rst MAINTAINERS
}