cropgui: switch to python3

Closes #2020
This commit is contained in:
Piraty 2020-03-19 21:06:29 +01:00
parent 0de70922dd
commit 53b53169d6
2 changed files with 17 additions and 6 deletions

View file

@ -0,0 +1,11 @@
--- install.sh
+++ install.sh
@@ -12,7 +12,7 @@
}
site_packages () {
- $PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()'
+ $PYTHON -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_lib())'
}
usage () {

View file

@ -1,18 +1,18 @@
# Template file for 'cropgui'
pkgname=cropgui
version=0.4
revision=2
hostmakedepends="which"
makedepends="python"
depends="python python-Pillow python-gobject2
pygtk libjpeg-turbo-tools ImageMagick exiftool"
revision=3
hostmakedepends="which python3"
depends="python3 python3-Pillow python3-gobject
libjpeg-turbo-tools ImageMagick exiftool"
short_desc="Gtk frontend for lossless cropping of jpeg images"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/jepler/cropgui"
distfiles="https://github.com/jepler/cropgui/archive/v${version}.tar.gz"
checksum=bf5a5b14032d01799f8d942790e316203f33a7c007eedf23e57c79d5a47d6fb1
python_version=3
do_install() {
./install.sh -f gtk -t "$PKGDESTDIR" -P python -p /usr
./install.sh -f gtk -t "$PKGDESTDIR" -P python3 -p /usr
}