summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVianney le Clément de Saint-Marcq2019-09-11 14:52:28 +0200
committerVianney le Clément de Saint-Marcq2019-09-11 14:52:28 +0200
commit0fe0a49c70807b2278a8455a4ce3948ee49ae287 (patch)
tree12a288c47c85551fa1f9261588ee36aa4973d9bd
downloadaur-0fe0a49c70807b2278a8455a4ce3948ee49ae287.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD27
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0c0c96a93c7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = undocker-git
+ pkgdesc = Unpacks a Docker image
+ pkgver = 20180209.gc951f02
+ pkgrel = 1
+ url = https://github.com/larsks/undocker/
+ arch = any
+ license = GPL3
+ makedepends = python-setuptools
+ makedepends = git
+ depends = python
+ source = git://github.com/larsks/undocker.git
+ md5sums = SKIP
+
+pkgname = undocker-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c889519229c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Vianney le Clément de Saint-Marcq <code AT quartic·eu>
+_pkgname=undocker
+pkgname=${_pkgname}-git
+pkgver=20180209.gc951f02
+pkgrel=1
+pkgdesc="Unpacks a Docker image"
+arch=('any')
+url="https://github.com/larsks/undocker/"
+license=('GPL3')
+depends=('python')
+makedepends=('python-setuptools' 'git')
+source=("git://github.com/larsks/${_pkgname}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ _date=$(git show -s --format='%ci' | cut -d' ' -f1 | sed 's/-//g')
+ _hash=$(git show -s --format='%h')
+ echo "${_date}.g${_hash}"
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et: