summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Keen2019-03-06 15:58:45 -0500
committerKyle Keen2019-03-06 15:58:45 -0500
commit65de7688e5e729c200123a7675e6b7a8242b632a (patch)
treea3bb05d9180155fe2efb28fce25fcef8f06beae4
parented4b8ed9c4c787939cff5690703ebb0ae8946171 (diff)
downloadaur-65de7688e5e729c200123a7675e6b7a8242b632a.tar.gz
python3 from Javier
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD17
2 files changed, 15 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 69501f8026f..8649a20c889 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,22 @@
+# Generated by mksrcinfo v8
+# Wed Mar 6 20:58:43 UTC 2019
pkgbase = trimage-git
pkgdesc = A GUI based lossless image compressor.
- pkgver = 20110928
+ pkgver = 20190305
pkgrel = 1
url = http://trimage.org
arch = any
license = MIT
makedepends = git
- depends = python2-pyqt
+ depends = python-pyqt5
+ depends = python-sip-pyqt5
depends = optipng
depends = advancecomp
depends = jpegoptim
depends = pngcrush
provides = trimage
conflicts = trimage
- source = git://github.com/Kilian/Trimage.git
+ source = git+https://github.com/Kilian/Trimage.git#branch=master
md5sums = SKIP
pkgname = trimage-git
diff --git a/PKGBUILD b/PKGBUILD
index 4140750dafd..ec508f3748c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,37 @@
# Contributor: Kyle Keen <keenerd@gmail.com>
+# Contributor: Javier Lloris
pkgname=trimage-git
-pkgver=20110928
+pkgver=20190305
pkgrel=1
pkgdesc="A GUI based lossless image compressor."
url="http://trimage.org"
arch=('any')
license=('MIT')
-depends=("python2-pyqt" "optipng" "advancecomp" "jpegoptim" "pngcrush")
+depends=("python-pyqt5" "python-sip-pyqt5" "optipng" "advancecomp" "jpegoptim" "pngcrush")
makedepends=("git")
conflicts=("trimage")
provides=("trimage")
-source=("git://github.com/Kilian/Trimage.git")
+source=("git+https://github.com/Kilian/Trimage.git#branch=master")
md5sums=("SKIP")
_gitname="Trimage"
pkgver() {
- cd "$_gitname"
+ cd "$srcdir/$_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
+ # find ./ -type f -name '*.py' | xargs -n 1 sed -i 's|/usr/bin/env python3|/usr/bin/env python|'
+ # sed -i 's|/usr/bin/env python|/usr/bin/env python3|' trimage
- python2 setup.py build
+ python setup.py build
}
package() {
cd "$srcdir/$_gitname"
- python2 setup.py install --prefix=/usr --root="$pkgdir"
+ python setup.py install --prefix=/usr --root="$pkgdir"
}