Advertisement
Guest User

Untitled

a guest
Jan 9th, 2019
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. # Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
  2. # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
  3. # Contributor: Aliaksandr Stelmachonak <mail.avatar@gmail.com>
  4.  
  5. set -u
  6. pkgname='zoiper'
  7. pkgver='5.2.19'
  8. pkgrel='1'
  9. pkgdesc='a SIP and IAX2 VoIP softphone'
  10. arch=('i686' 'x86_64')
  11. url='http://www.zoiper.com/'
  12. license=('custom')
  13. depends=('gtk2' 'gconf' 'libnotify' 'libxss' 'v4l-utils')
  14. options=('!strip')
  15. source=('LICENSE' "${pkgname}.desktop" "${pkgname}.png" "${pkgname}-24.png" "${pkgname}-48.png" "${pkgname}-96.png")
  16. #source+=('zoipdl.sh')
  17. _srcfile="${pkgname}${pkgver%%.*}_${pkgver}_${CARCH:-}.tar.xz"
  18. sha1sums=('645d0003fe2e0975c53e008aa31106cceb0d8dad'
  19. 'ec8e948442bd0d010004420f7338ccfb08985007'
  20. 'c1eea005beb7587b24b0a0d242eebc49a67f9026'
  21. '1a0f4c83c6b538584865df327702f800689493b0'
  22. '7fef1f81c32fc4be2d876fadf34178f60ea0a29e'
  23. '11fb63a8353353d28288a644aeb4cdf9a3ab3e8c')
  24. sha256sums=('4ed406e6786163514ff0714af7417e680c56cbe1edcb297196d6dbee2ffa798b'
  25. '8d449a3f15d0a1f6307106bcb5f62ec8f921ba2279d5d42042bd0d2beb08f103'
  26. 'b3dd0f8bb4314444177b122d032142459cba606b8f7812a8489d3cbbf83f2b3b'
  27. '79bac289dba2ed8bc65886643ba6aaf1a5057ed1ff5605a0eac166d7f4afd0b8'
  28. '5a795b8248a576a7166e7f4d773f83a41a640d698917a35eb8bfa7eef7c4bfcc'
  29. '619466b96c560fbd2511c04120810f0cb30a58aa12d5bcca2af977bcd527fb41')
  30. PKGEXT='.pkg.tar.gz'
  31.  
  32. if ! :; then
  33. #source+=("${_srcfile}::https://zoipdl.tgz")
  34. #DLAGENTS requires an executable file and cannot call PKGBUILD functions
  35. #DLAGENTS=("https::${startdir}/zoipdl.sh %o %u") # does not work with spaces in folder names, printf %q doesn't work any better
  36. #DLAGENTS=("https::./zoipdl.sh %o %u") # will a relative path work for every AUR helper?
  37. noextract=("${_srcfile}")
  38. fi
  39.  
  40. # Should be in prepare() but pacaur suppresses the message text from prepare() and does not halt on prepare() failure.
  41. build() {
  42. set -u
  43. if ! test -e "${_srcfile}"; then
  44. set +u
  45. #local _url='https://www.zoiper.com/en/voip-softphone/download/zoiper5/for/linux'
  46. #warning "There is no longer a direct download link for the Zoiper tarball."
  47. #warning "Get it manually from: ${_url}"
  48. #warning "Or use the supplied ${startdir}/zoipdl.sh"
  49. false
  50. fi
  51. set +u
  52. }
  53.  
  54. package() {
  55. set -u
  56. install -d "${pkgdir}/usr/lib"
  57. pushd "${pkgdir}/usr/lib" > /dev/null
  58. set +u; msg2 "Unpack ${_srcfile}"; set -u
  59. bsdtar -xf "${startdir}/${_srcfile}"
  60. mv "Zoiper${pkgver%%.*}" "${pkgname}"
  61. pushd "${pkgname}" > /dev/null
  62. chmod 755 "${pkgname}"
  63. chmod 644 *.pak */*.pak *.bin *.dat
  64. popd > /dev/null
  65. popd > /dev/null
  66. install -d "${pkgdir}/usr/bin"
  67. ln -s "../lib/${pkgname}/${pkgname}" -t "${pkgdir}/usr/bin/"
  68. install -Dpm644 "${pkgname}.png" "${pkgname}-24.png" "${pkgname}-48.png" "${pkgname}-96.png" -t "${pkgdir}/usr/share/pixmaps/"
  69. install -Dpm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications/"
  70. install -Dpm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}/"
  71. set +u
  72. }
  73.  
  74. set +u
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement