summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5efce5dad9339840f84f83d07e04b558d3f37611 (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
pkgname=douane-dkms-git
pkgver=0.8.2+5.gdf94296dea10b3a5ce3e
pkgrel=1
pkgdesc="Douane Firewall Kernel Module (DKMS)"
arch=('x86_64')
url="http://douaneapp.com/"
license=('GPL2')
depends=('dkms')
makedepends=('git')
source=('git+https://gitlab.com/douaneapp/douane-dkms.git')
md5sums=('SKIP')
conflicts=(douane-dkms)
provides=(douane-dkms=${pkgver%+*})

pkgver() {
  git -C douane-dkms describe --always | sed 's/^v//; s/-/+/; s/-/./'
}

package() {
  install -Dm644 -t "$pkgdir/usr/src/$pkgname-$pkgver/" \
    douane-dkms/dkms.conf \
    douane-dkms/Makefile \
    douane-dkms/*.c \
    douane-dkms/*.h
}