BASH 12
Smartsvn 9.3.0-2 Guest on 14th April 2018 01:41:02 PM
  1. # Maintainer: Rene Peinthor <peinthor@gmail.com>
  2. # Contributor: Muflone http://www.muflone.com/contacts/english/
  3.  
  4. pkgname=smartsvn
  5. pkgver=9.3.0
  6. pkgrel=2
  7. pkgdesc="A Subversion (SVN) GUI client written in Java"
  8. arch=("any")
  9. url="https://www.syntevo.com/smartsvn/"
  10. license=('custom')
  11. depends=("java-runtime" "desktop-file-utils" "sh" "hunspell-en_US")
  12. provides=("smartsvn=${pkgver}")
  13. source=("https://www.smartsvn.com/downloads/${pkgname}/${pkgname}-linux-${pkgver//\./_}.tar.gz"
  14.         "${pkgname}.desktop")
  15. sha256sums=('ca2b90ec9999b52696f524405a00aec0f31ca894bd67d8ab09a0d99db546d9e1'
  16.             'be858f1d6fda582bf5301446caa851eb2354eaf8875aef0567d516385c4e59bd')
  17.  
  18. package() {
  19.   # Install desktop file
  20.   install -m 755 -d "${pkgdir}/usr/share/applications"
  21.   install -m 755 -t "${pkgdir}/usr/share/applications" "${pkgname}.desktop"
  22.   cd "${pkgname}"
  23.   # Install license files
  24.   install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  25.   install -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" license.html licenses/*
  26.   # Install documentation files
  27.   install -m 755 -d "${pkgdir}/usr/share/doc/${pkgname}"
  28.   install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" changelog.txt known-issues.txt readme-linux.txt
  29.   # Install launcher files
  30.   install -m 755 -d "${pkgdir}/usr/lib/${pkgname}/bin"
  31.   install -m 755 -t "${pkgdir}/usr/lib/${pkgname}/bin" bin/smartsvn.sh
  32.   install -m 755 -d "${pkgdir}/usr/bin"
  33.   ln -s "/usr/lib/${pkgname}/bin/smartsvn.sh" "${pkgdir}/usr/bin/${pkgname}"
  34.   # Install library files
  35.   install -m 755 -d "${pkgdir}/usr/lib/${pkgname}/lib"
  36.   install -m 644 -t "${pkgdir}/usr/lib/${pkgname}/lib" lib/*
  37.   # Symlink hunspell dictionaries
  38.   ln -s "/usr/share/hunspell" "${pkgdir}/usr/lib/${pkgname}/dictionaries"
  39.   # Install icon files
  40.   for _size in 32 48 64 128
  41.   do
  42.     install -m 644 -D "bin/${pkgname}-${_size}.png" "${pkgdir}/usr/share/icons/hicolor/${_size}x${_size}/apps/${pkgname}.png"
  43.   done
  44. }

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.