summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 394582fd447aa789261f95437b60856ff9b4b11c (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
# Maintainer: Mantas Mikulėnas <grawity@gmail.com>
pkgname=parpd
_commit=16daa7e690c783b7b440b05b638de17aab50c2ad
pkgver=2.1.1
pkgrel=1
pkgdesc="Proxy-ARP daemon"
arch=(i686 x86_64)
url="https://roy.marples.name/projects/parpd"
license=(BSD)
makedepends=(git)
source=("git+https://github.com/NetworkConfiguration/parpd#commit=$_commit"
        "parpd.service")
sha256sums=('SKIP'
            '5854839e487459500fb36ae6edce28ad99fa4799847688411ec12abf42c81be3')

pkgver() {
  cd "$pkgname"
  git describe | sed "s/^parpd-//; s/^v//; s/-/.r/; s/-/./"
}

build() {
  cd "$pkgname"
  ./configure \
    --prefix=/usr       \
    --sbindir=/usr/bin  \
    --rundir=/run       \
    ;
  make
}

package() {
  cd "$pkgname"
  make DESTDIR="$pkgdir" install
  install -Dm644 ../parpd.service "$pkgdir"/usr/lib/systemd/system/parpd.service
}

# vim: ts=2:sw=2:et