diff options
author | Alexey Stukalov | 2015-06-08 18:37:55 +0200 |
---|---|---|
committer | Alexey Stukalov | 2015-06-08 18:37:55 +0200 |
commit | c8e635fee4691fd927618e0f8b4a6a2b3ccb2865 (patch) | |
tree | 9fc06a7b9f9e07fef7b856cec67f6c43d509cd86 /PKGBUILD | |
download | aur-c8e635fee4691fd927618e0f8b4a6a2b3ccb2865.tar.gz |
Initial commit (v6.5.8)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5e58a20f814f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +#Maintainer: Alexey Stukalov <astukalov@gmail.com> +pkgname=smartgit +pkgver=6.5.8 +pkgrel=1 +pkgdesc="Git/Hg GUI client written in Java." +arch=("any") +url="http://www.syntevo.com/smartgit" +license=('custom') +depends=("java-runtime" "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}-generic-${_pkgver}.tar.gz + smartgit.desktop) +install="smartgit.install" +md5sums=('84ebfa3fbd5e039b740971c511f705ce' + 'c372fb0864ce6010c92f75910acbe8d0') + +package() { + cd "$srcdir" + + #install -D -m644 "${_pkgfolder}"/licenses/* "${pkgdir}/usr/share/licenses/${pkgname}" + 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} +} |