summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1299990362343a541872307ea07a4fb9fd384335 (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
# Maintainer: Jerry Xiao <aur at mail.jerryxiao.cc>

_pkgbase=rdnstun
_srcname=rdnstun
pkgname=${_pkgbase}-git
pkgver=r23.e5cb910
pkgrel=1
pkgdesc="ICMP Path Faker"
arch=('x86_64')
url="https://github.com/yangfl/rdnstun"
license=('WTFPL')
provides=("$_pkgbase")
conflicts=("$_pkgbase")
makedepends=("git")
source=(
  "${_srcname}::git+https://github.com/yangfl/rdnstun.git#branch=master"
)
md5sums=(
  'SKIP'
)

pkgver() {
  cd "$srcdir/${_srcname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/${_srcname}"
  make
}

package() {
  cd "$srcdir/${_srcname}"
  install -Dt "${pkgdir}/usr/bin" -m 755 rdnstun
}