summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Plangg2015-10-16 00:16:11 +0200
committerMarkus Plangg2015-10-16 00:20:45 +0200
commita151c5b63d684269b2b980d6721dd47234f020e2 (patch)
tree4e6191d04f4d2f2c85ad0830069c319866c9b9dc
downloadaur-a151c5b63d684269b2b980d6721dd47234f020e2.tar.gz
Make package for docker-squash 0.1.0
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD21
-rw-r--r--README.md25
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fe23ddf13ec
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = docker-squash
+ pkgdesc = Squash docker images to make them smaller
+ pkgver = 0.1.0
+ pkgrel = 1
+ url = https://github.com/jwilder/docker-squash
+ arch = x86_64
+ license = MIT
+ provides = docker-squash
+ conflicts = docker-squash
+ source = https://github.com/jwilder/docker-squash/releases/download/v0.1.0/docker-squash-linux-amd64-v0.1.0.tar.gz
+ source = https://raw.githubusercontent.com/jwilder/docker-squash/v0.1.0/LICENSE
+ md5sums = a2992d7660bd7205daaac3c57275e80b
+ md5sums = b9a1706302da7a4fa063eaaf7baf846b
+ sha256sums = ae046cd4e6ef3c16f3e8a12b22daaa8c444860e2254a540202f008eab2210265
+ sha256sums = 65fabd41da53d67cbbfad5dd2006054024d649d2179f5bc60c807342fe235065
+
+pkgname = docker-squash
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..19dd87907b0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Markus Plangg <mksplg at gmail.com>
+pkgname=docker-squash
+pkgver=0.1.0
+pkgrel=1
+pkgdesc="Squash docker images to make them smaller"
+arch=('x86_64')
+url="https://github.com/jwilder/docker-squash"
+license=('MIT')
+provides=('docker-squash')
+conflicts=('docker-squash')
+source=("https://github.com/jwilder/docker-squash/releases/download/v$pkgver/docker-squash-linux-amd64-v$pkgver.tar.gz"
+ "https://raw.githubusercontent.com/jwilder/docker-squash/v$pkgver/LICENSE")
+md5sums=('a2992d7660bd7205daaac3c57275e80b'
+ 'b9a1706302da7a4fa063eaaf7baf846b')
+sha256sums=('ae046cd4e6ef3c16f3e8a12b22daaa8c444860e2254a540202f008eab2210265'
+ '65fabd41da53d67cbbfad5dd2006054024d649d2179f5bc60c807342fe235065')
+
+package() {
+ install -D -m755 "$srcdir"/docker-squash "$pkgdir/usr/bin/docker-squash"
+ install -D -m644 "$srcdir"/LICENSE "$pkgdir/usr/share/licenses/docker-squash/LICENSE"
+}
diff --git a/README.md b/README.md
new file mode 100644
index 00000000000..26b9e8237b5
--- /dev/null
+++ b/README.md
@@ -0,0 +1,25 @@
+# Arch package docker-squash
+
+[docker-squash](https://github.com/jwilder/docker-squash) is a utility to squash multiple docker layers into one in order to create an image with fewer and smaller layers.
+
+
+## Install using an AUR helper
+
+[AUR Helpers](https://wiki.archlinux.org/index.php/AUR_helpers) provide a simpler interface to the Arch User Repository. There are serveral tools that allow to build an install an AUR package using a single command.
+
+* `yaourt docker-squash`
+* `aura -A docker-squash`
+* `pacaur -y docker-squash`
+
+## Build and install the package
+
+[Installing packages from AUR](https://wiki.archlinux.org/index.php/AUR_User_Guidelines#Installing_packages) can be done manually:
+
+* Clone the [docker-squash AUR repository](https://aur.archlinux.org/foo.git)
+ `git clone https://aur.archlinux.org/docker-squash.git`
+* Change into the cloned repository
+ `cd docker-squash`
+* Inspect the package
+ `vi PKGBUILD`
+* Build and install the package
+ `makepkg -srci`