Guest User

Untitled

a guest
Oct 24th, 2017
7,931
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: yaroslav <proninyaroslav@mail.ru>
  2. # Contributor: Ivan Petruk <localizator at ukr dot net>
  3.  
  4. pkgname=vkaudiosaver
  5. _realname=VkAudioSaver
  6. pkgver=2.0.6
  7. pkgrel=1
  8. pkgdesc="A tool for listening & downloading the music from social network VK.COM"
  9. arch=('i686' 'x86_64')
  10. url="http://vkaudiosaver.ru/"
  11. license=('custom')
  12. groups=("network")
  13.  
  14. if [ "$CARCH" = "i686" ]; then
  15.     _arch='i386'
  16.     depends=('fontconfig' 'freetype2' 'libstdc++5' 'libx11' 'libxext' 'libxrender' 'zlib' 'libpng12')
  17.     source=("http://vkaudiosaver.ru/download/vkaudiosaver-${pkgver}-${_arch}.deb"
  18.             "vkaudiosaver.desktop")
  19.     sha256sums=('465b01ea8afdb1babf4b83a75e8a7678b344539ab3ecfce4c629239004e5ef00'
  20.                 'afed971e597cc4d4c3170284e52a80115ffa8afd630fbb806c831413a3177994')
  21. elif [ "$CARCH" = "x86_64" ]; then
  22.     _arch='amd64'
  23.     depends=('fontconfig' 'freetype2' 'libstdc++5' 'libx11' 'libxext' 'libxrender' 'zlib' 'libpng12'
  24.              'lib32-fontconfig' 'lib32-freetype2' 'lib32-libxext' 'lib32-zlib' 'lib32-gcc-libs' 'lib32-libxrandr' 'lib32-libstdc++5' 'lib32-libpng12')
  25.     source=("http://vkaudiosaver.ru/download/vkaudiosaver-${pkgver}-${_arch}.deb"
  26.             "vkaudiosaver.desktop")
  27.     sha256sums=('ac83eaab81896f2ca0d70f9a3607369c381c4cd77f28e64b843e0c3277b9c929'
  28.                 'afed971e597cc4d4c3170284e52a80115ffa8afd630fbb806c831413a3177994')
  29. fi
  30.  
  31. package() {
  32.  
  33.   msg "Preparing install"
  34.   mkdir -p ${pkgdir}/usr/{bin,share}
  35.   mkdir -p ${pkgdir}/usr/share/pixmaps
  36.   ar x ${srcdir}/vkaudiosaver-${pkgver}-${_arch}.deb
  37.   tar xvJf ${srcdir}/data.tar.xz
  38.   msg2 "Done preparing!"
  39.  
  40.   msg "Actual installation"
  41.   cp -dpr --no-preserve=ownership ${srcdir}/{opt,usr} ${pkgdir}
  42.   rm ${pkgdir}/usr/share/applications/${pkgname}.desktop
  43.   cp ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications
  44.   ln -s "/opt/$_realname/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  45.   ln -s "/opt/$_realname/icon64.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
  46.   msg2 "Installation finished!"
  47.  
  48. }
RAW Paste Data