1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
2 # Contributor: Steven Allen <steven@stebalien.com>
3 # Contributor: Hugo Osvaldo Barrera <hugo@barrera.io>
8 pkgdesc='Native "fake root" for implementing rootless containers'
10 url='https://github.com/rootless-containers/rootlesskit'
12 depends=('glibc' 'shadow')
13 makedepends=('git' 'go')
14 checkdepends=('openbsd-netcat')
16 _commit='6222b477d4c3ce6eea2bcff0586e43c95d1c0bb7'
17 source=("$pkgname::git+https://github.com/rootless-containers/rootlesskit.git#commit=$_commit")
23 git describe --tags | sed 's/^v//'
29 # create directory for build output
32 # download dependencies
40 export CGO_CPPFLAGS="${CPPFLAGS}"
41 export CGO_CFLAGS="${CFLAGS}"
42 export CGO_CXXFLAGS="${CXXFLAGS}"
49 -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
64 install -vDm755 -t "$pkgdir/usr/bin" build/*
67 install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
68 cp -vr docs "$pkgdir/usr/share/doc/$pkgname"