Last active
March 30, 2018 10:33
-
-
Save scheunemann/b3d9fecffec7ae715b4efe66bff1ee10 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
pkgname=smartgit | |
pkgver=17.1.6 | |
pkgrel=1 | |
pkgdesc="Git client with Hg and SVN support." | |
arch=("any") | |
url="http://www.syntevo.com/smartgit" | |
license=('custom') | |
depends=("java-runtime>=8" "desktop-file-utils" "sh" "git" "gtk2") | |
optdepends=("mercurial: hg repositories support") | |
replaces=(smartgithg) | |
# package version as it appears in the name of tar.gz archive file | |
_pkgver=${pkgver//\./_} | |
# folder within tar.gz archive | |
_pkgfolder=${pkgname} | |
source=(https://www.syntevo.com/downloads/${pkgname}/${pkgname}-linux-${_pkgver}.tar.gz | |
smartgit.desktop) | |
sha1sums=('422a7a6b6da034c45dd722ba028ab76b8fff5dcc' | |
'bafa47c0b43ad89aaa3b34a078771b3cd12bd1f3') | |
package() { | |
cd "$srcdir" | |
#install -D -m644 "${_pkgfolder}"/licenses/* "${pkgdir}/usr/share/licenses/${pkgname}" # licenses are in /opt/smartgit/licenses | |
mkdir -p "${pkgdir}"/opt | |
mv "${_pkgfolder}" ${pkgdir}/opt/${pkgname} || return 1 | |
install -D -m644 smartgit.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop | |
# link icon files | |
mkdir -p ${pkgdir}/usr/share/icons/hicolor/{32x32,48x48,64x64,128x128,256x256}/apps | |
cd ${pkgdir}/usr/share/icons/hicolor | |
ln -s /opt/${pkgname}/bin/smartgit-32.png 32x32/apps/${pkgname}.png | |
ln -s /opt/${pkgname}/bin/smartgit-48.png 48x48/apps/${pkgname}.png | |
ln -s /opt/${pkgname}/bin/smartgit-64.png 64x64/apps/${pkgname}.png | |
ln -s /opt/${pkgname}/bin/smartgit-128.png 128x128/apps/${pkgname}.png | |
ln -s /opt/${pkgname}/bin/smartgit-256.png 256x256/apps/${pkgname}.png | |
# create link in /usr/bin | |
cd ${pkgdir} | |
chmod 755 opt/${pkgname}/bin/smartgit.sh | |
mkdir -p usr/bin | |
ln -s /opt/${pkgname}/bin/smartgit.sh usr/bin/${pkgname} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment