summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b944e9f7a61a531cd281132e0403ce80b13a4732 (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
# Contributor: SiƓn le Roux <sinisterstuf@gmail.com>
pkgname=img
_pkgname=img-linux-amd64
pkgver=0.5.11
pkgrel=1
pkgdesc="Standalone, daemon-less, unprivileged Dockerfile and OCI compatible container image builder"
arch=('x86_64')
url="https://github.com/genuinetools/${pkgname}"
license=('MIT')
groups=()
depends=('runc')
makedepends=('go')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(
  "https://github.com/genuinetools/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
  "https://raw.githubusercontent.com/genuinetools/${pkgname}/master/LICENSE"
)
md5sums=(
  '80cc8ee2c21aebec3c2957708298577e'
  '7bac31faf84a2d7e88972f562a3ebbe5'
)

build() {
  cd img-${pkgver}
  export GOFLAGS=-mod=vendor
  make BUILDTAGS="seccomp noembed"
}

package() {
  install -D "${srcdir}/img-${pkgver}/img" "${pkgdir}/usr/bin/img"
}
# vim:set ts=2 sw=2 et: