summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaltlgin2020-10-07 17:20:54 +1300
committercaltlgin2020-10-07 17:20:54 +1300
commit542c1697b5fb4849e419b7ebc4609a0bfa44389f (patch)
tree9fd7e6f3b90424d803ef2498e70e46fa67962422
parent65de7688e5e729c200123a7675e6b7a8242b632a (diff)
downloadaur-542c1697b5fb4849e419b7ebc4609a0bfa44389f.tar.gz
Adopt and update PKGBUILD
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD45
2 files changed, 32 insertions, 34 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8649a20c889..bdf3d825039 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +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 = 20190305
+ pkgdesc = Tool for optimizing PNG and JPG files
+ pkgver = 1.0.6.r12.gc21089f
pkgrel = 1
- url = http://trimage.org
- arch = any
+ url = https://trimage.org
+ arch = x86_64
license = MIT
makedepends = git
- depends = python-pyqt5
- depends = python-sip-pyqt5
- depends = optipng
+ makedepends = python-setuptools
depends = advancecomp
+ depends = hicolor-icon-theme
depends = jpegoptim
+ depends = optipng
depends = pngcrush
+ depends = python-pyqt5
provides = trimage
conflicts = trimage
- source = git+https://github.com/Kilian/Trimage.git#branch=master
- md5sums = SKIP
+ source = trimage::git+https://github.com/Kilian/Trimage.git
+ sha256sums = SKIP
pkgname = trimage-git
diff --git a/PKGBUILD b/PKGBUILD
index ec508f3748c..a1fa3786cb5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,37 +1,36 @@
+# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
# Contributor: Kyle Keen <keenerd@gmail.com>
-# Contributor: Javier Lloris
-pkgname=trimage-git
-pkgver=20190305
+_pkgname='trimage'
+pkgname="${_pkgname}-git"
+pkgver=1.0.6.r12.gc21089f
pkgrel=1
-pkgdesc="A GUI based lossless image compressor."
-url="http://trimage.org"
-arch=('any')
+pkgdesc='Tool for optimizing PNG and JPG files'
+arch=('x86_64')
+url='https://trimage.org'
+_url_source='https://github.com/Kilian/Trimage'
license=('MIT')
-depends=("python-pyqt5" "python-sip-pyqt5" "optipng" "advancecomp" "jpegoptim" "pngcrush")
-makedepends=("git")
-conflicts=("trimage")
-provides=("trimage")
-source=("git+https://github.com/Kilian/Trimage.git#branch=master")
-md5sums=("SKIP")
-
-_gitname="Trimage"
+depends=('advancecomp' 'hicolor-icon-theme' 'jpegoptim' 'optipng' 'pngcrush' 'python-pyqt5')
+makedepends=('git' 'python-setuptools')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("${_pkgname}::git+${_url_source}.git")
+sha256sums=('SKIP')
pkgver() {
- cd "$srcdir/$_gitname"
- git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
+ git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
- cd "$srcdir/$_gitname"
-
- # 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
-
+ cd "${_pkgname}"
python setup.py build
}
package() {
- cd "$srcdir/$_gitname"
- python setup.py install --prefix=/usr --root="$pkgdir"
+ cd "${_pkgname}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" 'README.md'
+ install -Dm644 'COPYING' "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
+
+# vim: ts=2 sw=2 et: