Created
August 8, 2019 10:36
-
-
Save x3rAx/c4ed84a7661cccf2f21f3cb938a17087 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
# Maintainer: Alexey Stukalov <[email protected]> | |
# Contributor: Muflone http://www.muflone.com/contacts/english/ | |
pkgname=smartgit | |
pkgver=19.1.0 | |
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' '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" | |
"${pkgname}.desktop") | |
sha1sums=('59a511ef8563679c7c7cc6f7f692f11ee61da203' | |
'bafa47c0b43ad89aaa3b34a078771b3cd12bd1f3') | |
package() { | |
# Install licenses | |
install -d -m 755 "${pkgdir}/usr/share/licenses/${pkgname}" | |
mv "${_pkgfolder}/licenses"/* "${pkgdir}/usr/share/licenses/${pkgname}" | |
mv "${_pkgfolder}/license.html" "${pkgdir}/usr/share/licenses/${pkgname}" | |
rmdir "${_pkgfolder}/licenses" | |
# Install application files | |
install -d -m 755 "${pkgdir}/opt" | |
mv "${_pkgfolder}" "${pkgdir}/opt/${pkgname}" | |
# Install desktop file | |
install -D -m 644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" | |
# Install icon files | |
install -d -m 755 "${pkgdir}/usr/share/icons/hicolor" | |
cd "${pkgdir}/usr/share/icons/hicolor" | |
for _size in 32 48 64 128 256 | |
do | |
install -d "${_size}x${_size}/apps" | |
ln -s "/opt/${pkgname}/bin/smartgit-${_size}.png" "${_size}x${_size}/apps/${pkgname}.png" | |
done | |
# Add symlink to /usr/bin | |
chmod 755 "${pkgdir}/opt/${pkgname}/bin/smartgit.sh" | |
install -d -m 755 "${pkgdir}/usr/bin" | |
ln -s "/opt/${pkgname}/bin/smartgit.sh" "${pkgdir}/usr/bin/${pkgname}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment