# Contributor: Bernhard Walle # Contributor: Clovis Fabricio # Contributor: Christopher Krooß # Maintainer: Andre Klitzing # AUR Category: devel pkgname=tortoisehg pkgver=5.7.1 pkgrel=1 #_pkgchangeset=1605d6fba195f02c0c689fe4aff5d7160aa2b15d pkgdesc="Graphical tools for Mercurial" url="https://foss.heptapod.net/mercurial/tortoisehg/thg" license=("GPL") depends=('python' 'mercurial>=5.6' 'mercurial<5.8' 'python-qscintilla-qt5' 'python-iniparse' 'qt5-svg' 'python-pyqt5') arch=('any') optdepends=('python-pygments: syntax highlighting' 'python-nautilus: Python binding for Nautilus components') if [ -z ${_pkgchangeset+x} ]; then source=("https://www.mercurial-scm.org/release/tortoisehg/targz/tortoisehg-$pkgver.tar.gz") else source=("$pkgname-$pkgver-${_pkgchangeset}.tar.gz::https://foss.heptapod.net/mercurial/tortoisehg/thg/-/archive/${_pkgchangeset}.tar.gz") fi package() { if [ -z ${_pkgchangeset+x} ]; then cd "${srcdir}/${pkgname}-${pkgver}" else cd "${srcdir}/thg-${_pkgchangeset}" fi python setup.py install --prefix=/usr --root="${pkgdir}" install -Dm 644 "contrib/mergetools.rc" "${pkgdir}/etc/mercurial/hgrc.d/thgmergetools.rc" install -Dm 644 "contrib/thg.desktop" "${pkgdir}/usr/share/applications/thg.desktop" install -Dm 644 "icons/svg/thg_logo.svg" "${pkgdir}/usr/share/pixmaps/thg_logo.svg" # already provided by hg rm -f "${pkgdir}/usr/lib/python3.9/site-packages/hgext3rd/__init__.py" rm -f "${pkgdir}/usr/lib/python3.9/site-packages/hgext3rd/__init__.pyc" rm -rf "${pkgdir}/usr/lib/python3.9/site-packages/hgext3rd/__pycache__/" } sha256sums=('e3a1a1e22802371f40027931cba85c25b872749a1cf3a604f611d133d16f9f46')