summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Keen2015-06-13 00:04:04 -0400
committerKyle Keen2015-06-13 00:04:04 -0400
commited4b8ed9c4c787939cff5690703ebb0ae8946171 (patch)
tree927ff62763668e4ac6737bb07fad0fdaa626c2c8
downloadaur-ed4b8ed9c4c787939cff5690703ebb0ae8946171.tar.gz
Initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD36
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..69501f8026f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = trimage-git
+ pkgdesc = A GUI based lossless image compressor.
+ pkgver = 20110928
+ pkgrel = 1
+ url = http://trimage.org
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = python2-pyqt
+ depends = optipng
+ depends = advancecomp
+ depends = jpegoptim
+ depends = pngcrush
+ provides = trimage
+ conflicts = trimage
+ source = git://github.com/Kilian/Trimage.git
+ md5sums = SKIP
+
+pkgname = trimage-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4140750dafd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Contributor: Kyle Keen <keenerd@gmail.com>
+
+pkgname=trimage-git
+pkgver=20110928
+pkgrel=1
+pkgdesc="A GUI based lossless image compressor."
+url="http://trimage.org"
+arch=('any')
+license=('MIT')
+depends=("python2-pyqt" "optipng" "advancecomp" "jpegoptim" "pngcrush")
+makedepends=("git")
+conflicts=("trimage")
+provides=("trimage")
+source=("git://github.com/Kilian/Trimage.git")
+md5sums=("SKIP")
+
+_gitname="Trimage"
+
+pkgver() {
+ cd "$_gitname"
+ git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
+}
+
+build() {
+ cd "$srcdir/$_gitname"
+
+ find ./ -type f -name '*.py' | xargs -n 1 sed -i 's|/usr/bin/env python|/usr/bin/env python2|'
+ sed -i 's|/usr/bin/env python|/usr/bin/env python2|' trimage
+
+ python2 setup.py build
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
+}