summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60dace0346003505e617841474bde2d4a80f91ce (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
# Maintainer: nafets227 <nafets227@users.noreply.github.com>
# Contributor: luelistan <archlinux-aur-git@max-weller.de>

pkgname=dhtest-git
pkgver=r70.c8f1dbb
pkgrel=1
pkgdesc="A DHCP client simulation on linux"
arch=("x86_64")
url="https://github.com/saravana815/dhtest"
license=('GPL2')
depends=("glibc")
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/saravana815/dhtest.git")
sha256sums=("SKIP")

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

build() {
  cd "$srcdir/${pkgname%-git}"
  make
}

package() {
  cd "$srcdir/${pkgname%-git}"
  mkdir -p $pkgdir/usr/bin
  install dhtest $pkgdir/usr/bin/dhtest
}