summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Linderud2017-06-23 16:44:52 +0200
committerMorten Linderud2017-06-23 16:44:52 +0200
commitb5baa3112fc6642ce8ff3111aa4fbb96462332d9 (patch)
tree40693cb11dff33fdfd27a2abf8dbdb8ff2b8f7ea
downloadaur-b5baa3112fc6642ce8ff3111aa4fbb96462332d9.tar.gz
Initial upload: buildah-git r233.21b1a93-1
Added buildah Signed-off-by: Morten Linderud <morten@linderud.pw>
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD42
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c673e54690e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+# Generated by mksrcinfo v8
+# Fri Jun 23 14:44:54 UTC 2017
+pkgbase = buildah-git
+ pkgdesc = A tool which facilitates building OCI images
+ pkgver = r233.21b1a93
+ pkgrel = 1
+ url = https://github.com/projectatomic/buildah
+ arch = x86_64
+ arch = i686
+ license = Apache-2.0
+ makedepends = go
+ makedepends = git
+ makedepends = bash-bats
+ makedepends = btrfs-progs
+ makedepends = device-mapper
+ makedepends = gpgme
+ makedepends = libassuan
+ makedepends = bzip2
+ makedepends = go-md2man
+ makedepends = runc
+ makedepends = skopeo
+ source = git://github.com/projectatomic/buildah.git
+ sha256sums = SKIP
+
+pkgname = buildah-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5e6cce82ff7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Morten Linderud <morten@linderud.pw>
+
+pkgname=buildah-git
+_pkgname=buildah
+pkgver=r233.21b1a93
+pkgrel=1
+pkgdesc="A tool which facilitates building OCI images"
+arch=('x86_64' 'i686')
+url="https://github.com/projectatomic/buildah"
+license=('Apache-2.0')
+makedepends=('go' 'git' 'bash-bats'
+ 'btrfs-progs' 'device-mapper'
+ 'gpgme' 'libassuan' 'bzip2'
+ 'go-md2man' 'runc' 'skopeo')
+source=("git://github.com/projectatomic/buildah.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ rm -rf "${srcdir}/src"
+ mkdir -p "$srcdir"/src/github.com/projectatomic
+ ln -sf "$srcdir/$_pkgname" "$srcdir"/src/github.com/projectatomic/buildah
+}
+
+build() {
+ export GOPATH="${srcdir}"
+ cd "$GOPATH"/src/github.com/projectatomic/buildah
+ make PREFIX=/usr
+}
+
+package() {
+ cd "${_pkgname}"
+ make -C "$srcdir/$_pkgname" DESTDIR="$pkgdir" PREFIX=usr install
+ # install -Dm755 "${_pkgname}" "$pkgdir/usr/bin/${_pkgname}"
+ # install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: