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 | |
download | aur-4fc5f82ac5e1b39a0626fd37e754792706ef248e.tar.gz |
wip
-rw-r--r-- | .SRCINFO | 34 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 46 |
3 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..66b9a8477b2e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,34 @@ +pkgbase = buildah-git + pkgdesc = A tool which facilitates building OCI images (git) + pkgver = 1.21.0.r168.g56ff12f0 + pkgrel = 1 + url = https://github.com/containers/buildah.git + arch = any + license = Apache + makedepends = go + makedepends = go-md2man + makedepends = git + makedepends = bash-bats + makedepends = btrfs-progs + makedepends = libassuan + makedepends = bzip2 + makedepends = go-md2man + makedepends = runc + makedepends = skopeo + makedepends = systemd + makedepends = containers-common + depends = crun + depends = skopeo + depends = slirp4netns + provides = buildah + conflicts = buildah + source = git+https://github.com/containers/buildah.git + sha256sums = SKIP + +pkgname = buildah-git + depends = crun + depends = skopeo + depends = slirp4netns + depends = libseccomp.so + depends = libdevmapper.so + depends = libgpgme.so diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..209eaaefe67f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/* +!PKGBUILD +!.SRCINFO +!.gitignore 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" +} |