summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ac7f0c0aefa8c94a6f3ee35d54f1b211f0b6136c (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
# Maintainer: geno+dev@fireorbit.de

pkgname=clatd-git
_pkgname=clatd
_pkgauthor=toreanderson
pkgver=1.5.r0.g66e1e5f
pkgrel=1
pkgdesc="A 464XLAT CLAT implementation for Linux"
arch=('any')
url="https://github.com/${_pkgauthor}/${_pkgname}"
license=(MIT)
depends=(tayga perl-net-ip perl-io-socket-inet6 perl-net-dns systemd)
optdepends=('NetworkManager: for dispatcher')
source=("git+https://github.com/toreanderson/clatd.git")
md5sums=(SKIP)

pkgver() {
	git -C clatd describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	install -Dm755 clatd/clatd "${pkgdir}/usr/bin/clatd"
	install -Dm755 clatd/scripts/clatd.networkmanager "${pkgdir}/etc/NetworkManager/dispatcher.d/50-clatd"
	install -Dm644 clatd/scripts/clatd.systemd "${pkgdir}/usr/lib/systemd/system/clatd.service"
}