Created
February 13, 2020 23:09
-
-
Save bjlaur/2ee8a69519e74b9a9a5c8358312dbc14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Bernhard Walle <bernhard@bwalle.de> | |
# Contributor: Clovis Fabricio <arch.nosklo@0sg.net> | |
# Contributor: Christopher Krooß <c.krooss@gmail.com> | |
# Maintainer: Andre Klitzing <aklitzing () gmail () com> | |
# AUR Category: devel | |
pkgname=tortoisehg | |
pkgver=5.2.0 | |
pkgrel=2 | |
_pkgchangeset=cd0a887ad5b1 | |
pkgdesc="Graphical tools for Mercurial" | |
url="https://tortoisehg.bitbucket.io" | |
license=("GPL") | |
depends=('python2' 'mercurial>=5.2.2' 'mercurial<5.4' 'python2-qscintilla-qt5' 'python2-iniparse' 'qt5-svg' 'python2-pyqt5') | |
builddepends=(python) | |
arch=('any') | |
optdepends=('python-pygments: syntax highlighting' | |
'python-nautilus: Python binding for Nautilus components') | |
if [ -z ${_pkgchangeset+x} ]; | |
then | |
source=("http://bitbucket.org/tortoisehg/targz/downloads/${pkgname}-${pkgver}.tar.gz") | |
else | |
source=("$pkgname-$pkgver-${_pkgchangeset}.tar.gz::https://bitbucket.org/tortoisehg/thg/get/${_pkgchangeset}.tar.gz") | |
fi | |
package() { | |
if [ -z ${_pkgchangeset+x} ]; | |
then | |
cd "${srcdir}/${pkgname}-${pkgver}" | |
else | |
cd "${srcdir}/tortoisehg-thg-${_pkgchangeset}" | |
fi | |
python2 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/python2.7/site-packages/hgext3rd/__init__.py" | |
rm -f "${pkgdir}/usr/lib/python2.7/site-packages/hgext3rd/__init__.pyc" | |
rm -rf "${pkgdir}/usr/lib/python2.7/site-packages/hgext3rd/__pycache__/" | |
} | |
sha256sums=('7da8c36f2455a4257eab8107ea1e50c1f90091874744b6bc523d5f2a9072cc3d') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment