diff options
author | Sam | 2021-08-03 00:06:35 +0000 |
---|---|---|
committer | Sam | 2021-08-03 00:06:35 +0000 |
commit | 4fc5f82ac5e1b39a0626fd37e754792706ef248e (patch) | |
tree | 80ec83f57a7a6482d5fad4d5c29c4f2615d9f05c /PKGBUILD | |
download | aur-4fc5f82ac5e1b39a0626fd37e754792706ef248e.tar.gz |
wip
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cbf7840db655 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: samarthj <dev@samarthj.com> +# Contributor: Morten Linderud <morten@linderud.pw> + +pkgname=buildah-git +_pkgname=buildah +pkgver=1.21.0.r168.g56ff12f0 +pkgrel=1 +pkgdesc="A tool which facilitates building OCI images (git)" +arch=('any') +depends=(crun skopeo slirp4netns) +makedepends=('go' 'go-md2man' 'git' 'bash-bats' + 'btrfs-progs' 'libassuan' 'bzip2' + 'go-md2man' 'runc' 'skopeo' + 'systemd' 'containers-common') +provides=("$_pkgname") +conflicts=("$_pkgname") +url="https://github.com/containers/$_pkgname.git" +license=(Apache) +source=("git+$url") +sha256sums=('SKIP') + +pkgver() { + cd "${_pkgname}" + ver=$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g') + echo ${ver#v} +} + +build() { + export SECURITYTAGS='seccomp apparmor' + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath" + + cd $_pkgname + make EXTRA_LDFLAGS='-s -w -linkmode=external' +} + +package() { + depends+=('libseccomp.so' 'libdevmapper.so' 'libgpgme.so') + + cd $_pkgname + make install install.completions DESTDIR="$pkgdir" PREFIX=/usr + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |