aboutsummaryrefslogtreecommitdiffstats
path: root/community/img/APKBUILD
blob: 9794919964a4625e23d96188940ea4bf4f561e7c (plain) (blame)
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
# Contributor: Lucas Ramage <ramage.lucas@protonmail.com>
# Maintainer: Lucas Ramage <ramage.lucas@protonmail.com>
pkgname=img
pkgver=0.5.11
pkgrel=0
pkgdesc="Standalone, daemon-less, unprivileged Dockerfile and OCI compatible container image builder"
url="https://github.com/genuinetools/img"
arch="x86_64"
license="MIT"
options="!check chmod-clean"
depends="runc shadow-uidmap"
makedepends="bash go libseccomp-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/genuinetools/img/archive/v$pkgver.tar.gz"
builddir="$srcdir/go/src/github.com/genuinetools/img"

prepare() {
	default_prepare
	mkdir -p "$srcdir/go/src/github.com/genuinetools"
	mv "$srcdir/$pkgname-$pkgver" "$builddir"
}

build() {
	export GOPATH="$srcdir/go"
	make BUILDTAGS="seccomp noembed"
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="de80c2c26dd2fb780fb0447f07b5478e1571067ec934fb2adb32dff1aa3853ff872388b9c9c168c139194ab5d38672fb3b4c76c4f77fd8e61ce48bde8cae8c1b  img-0.5.11.tar.gz"