summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9661f092f713cf5922ef7b160dd3a45db35d5f47 (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
38
# Maintainer: Anton Semjonov < a**** \├Ąt semjonov.de >

_pkgname="slirp4netns"
pkgname="${_pkgname}-git"
pkgdesc="User-mode networking for unprivileged network namespaces."

pkgver=v0.3.0.r6.g67f04e2
pkgrel=1

arch=('any')
url="https://github.com/rootless-containers/$_pkgname"
license=('GPL-2.0')

depends=()
makedepends=('git')

provides=($_pkgname)
conflicts=($_pkgname)

source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_pkgname"
	./autogen.sh
	./configure --prefix=/usr
	make
}

package() {
  cd "$srcdir/$_pkgname"
  make DESTDIR="$pkgdir" install
}