Skip to content

Instantly share code, notes, and snippets.

@arcmags
Last active February 19, 2026 04:10
Show Gist options
  • Select an option

  • Save arcmags/d3d2bc65e42a76b3c0398ee8c3ce763e to your computer and use it in GitHub Desktop.

Select an option

Save arcmags/d3d2bc65e42a76b3c0398ee8c3ce763e to your computer and use it in GitHub Desktop.
cropgui 0.9-3 PKGBUILD
# Maintainer: mags <c.magyar.ec@gmail.com>
pkgname=cropgui
arch=('any')
pkgver=0.9
pkgrel=3
pkgdesc="a simple tool for lossless jpeg cropping"
license=('GPL')
url="https://github.com/jepler/cropgui"
depends=('libjpeg' 'python-pillow' 'imagemagick' 'python-gobject' 'gtk3' 'perl-image-exiftool')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jepler/cropgui/archive/v${pkgver}.tar.gz")
md5sums=('1a73990120dd72f03656b3bcb0150691')
package() {
local _python=3.14
[[ $(python -V) =~ ^Python\ ([0-9]+\.[0-9]+).* ]] && _python="${BASH_REMATCH[1]}"
cd "$pkgname-$pkgver"
install -Dm644 cropgui.desktop "$pkgdir/usr/share/applications/cropgui.desktop"
install -Dm644 cropgui.png "$pkgdir/usr/share/pixmaps/cropgui.png"
install -Dm644 -t "$pkgdir/usr/lib/python$_python/site-packages/cropgui/" cropgui_common.py filechooser.py cropgui.glade
install -Dm755 cropgtk.py "$pkgdir/usr/lib/python$_python/site-packages/cropgui/cropgtk.py"
mkdir -p "$pkgdir/usr/bin"
ln -s "/usr/lib/python$_python/site-packages/cropgui/cropgtk.py" "$pkgdir/usr/bin/cropgui"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment