summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas F2015-08-15 20:21:29 +0200
committerNicolas F2015-08-15 20:33:42 +0200
commit86c0f7308658fbd467259ab26a403b9f0aa51a6c (patch)
tree56bf2a346d6f61d382dda1ad3b6f3b31efb5035c
downloadaur-86c0f7308658fbd467259ab26a403b9f0aa51a6c.tar.gz
Initial Commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD28
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..152a0ae5beb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = zopflipng-git
+ pkgdesc = PNG optimisation tool using Google's zopfli library, git version.
+ pkgver = 6ff3ba2
+ pkgrel = 1
+ url = https://github.com/google/zopfli
+ arch = i686
+ arch = x86_64
+ arch = ARM
+ license = Apache
+ makedepends = git
+ depends = gcc-libs
+ provides = zopflipng
+ source = git+https://github.com/google/zopfli.git
+ md5sums = SKIP
+
+pkgname = zopflipng-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d7d3333691a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Nicolas F. <aur@fratti.ch>
+pkgname=zopflipng-git
+pkgver=6ff3ba2
+pkgrel=1
+pkgdesc="PNG optimisation tool using Google's zopfli library, git version."
+arch=('i686' 'x86_64' 'ARM')
+url="https://github.com/google/zopfli"
+license=('Apache')
+makedepends=('git')
+depends=('gcc-libs')
+provides=('zopflipng')
+source=('git+https://github.com/google/zopfli.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/zopfli"
+ printf "%s" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/zopfli"
+ make zopflipng
+}
+
+package() {
+ cd "$srcdir/zopfli"
+ install -Dm755 zopflipng "${pkgdir}/usr/bin/zopflipng"
+} \ No newline at end of file