summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrej Marolt2016-08-07 15:48:30 +0200
committerAndrej Marolt2016-08-07 15:48:30 +0200
commit1824d5cb57db8f7a694f632147a8147ba9201b29 (patch)
tree9cf0910daeb8fb343d91a69936a8b0d6c9c2b3d9
downloadaur-1824d5cb57db8f7a694f632147a8147ba9201b29.tar.gz
Release v1.1.1
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD21
-rw-r--r--openshift-source-to-image.install27
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..afb8b6922ce
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = openshift-source-to-image
+ pkgdesc = A tool for building/building artifacts from source and injecting into docker images
+ pkgver = 1.1.1
+ pkgrel = 1
+ url = https://github.com/openshift/source-to-image
+ install = openshift-source-to-image.install
+ arch = i686
+ arch = x86_64
+ license = Apache
+ source = https://github.com/openshift/source-to-image/releases/download/v1.1.1/source-to-image-v1.1.1-724c0dd-linux-amd64.tar.gz
+ md5sums = 95c968dc6d00d09bb85b397443758478
+
+pkgname = openshift-source-to-image
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..35af9db5ae3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Andrej Marolt <andrej.marolt@gmail.com>
+pkgname=openshift-source-to-image
+_release=v1.1.1
+_commit=724c0dd
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="A tool for building/building artifacts from source and injecting into docker images"
+arch=('i686' 'x86_64')
+url="https://github.com/openshift/source-to-image"
+license=('Apache')
+install=${pkgname}.install
+source=("https://github.com/openshift/source-to-image/releases/download/${_release}/source-to-image-${_release}-${_commit}-linux-amd64.tar.gz")
+md5sums=('95c968dc6d00d09bb85b397443758478')
+
+build() {
+ echo "Installing source-to-image"
+}
+
+package() {
+ install -D -m755 $srcdir/s2i $pkgdir/usr/bin/s2i
+}
diff --git a/openshift-source-to-image.install b/openshift-source-to-image.install
new file mode 100644
index 00000000000..96cd0fcced3
--- /dev/null
+++ b/openshift-source-to-image.install
@@ -0,0 +1,27 @@
+
+pre_remove()
+{
+ echo "Running source-to-image pre_remove script..."
+
+ rm /usr/bin/sti
+ rm /usr/bin/s2i
+
+}
+
+pre_upgrade() {
+ pre_remove
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_install() {
+
+ echo "Running source-to-image post_install script..."
+
+ ln -s /usr/bin/s2i /usr/bin/sti
+
+ s2i
+
+}