Guest User

Untitled

a guest
Nov 14th, 2017
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- a/PKGBUILD  2017-11-14 18:48:14.964630954 -0500
  2. +++ b/PKGBUILD  2017-11-14 19:28:10.661399133 -0500
  3. @@ -3,11 +3,12 @@
  4.  # Contributor: Otto Allmendinger <otto.allmendinger@googlemail.com>
  5.  # Contributor: Malte Rabenseifner <malte@zearan.de>
  6.  
  7. -_use_zeroc_ice="0"
  8. +_use_zeroc_ice="1"
  9. +_use_grpc="0"
  10.  
  11.  pkgname=murmur-git
  12. -pkgver=1.2.5.2194.ge414bd3b
  13. -pkgrel=2
  14. +pkgver=1.2.5.2602.g8bf71ba1
  15. +pkgrel=1
  16.  pkgdesc="The voice chat application server for Mumble (git version)"
  17.  arch=('i686' 'x86_64' 'armv7h')
  18.  url="http://mumble.sourceforge.net"
  19. @@ -26,12 +27,19 @@
  20.  source=("git://github.com/mumble-voip/mumble.git"
  21.      "murmur.dbus.conf"
  22.      "murmur.service")
  23. -md5sums=('SKIP'
  24. -         'eddea4cdbd0bde4b960a67e16b5d5478'
  25. -         'd27a9adcd7561859e7b033046729bc0e')
  26. +sha512sums=('SKIP'
  27. +            '97c7effdddec324e40195c36ef4927950a5de26d2ee2d268d89df6fb547207bbbe30292773316cae6f57ec9923244f205fb0edc377b798771ba7385e3c11d86a'
  28. +            'fc230c3d7119afed34485eeb84fd935968dc69e4a00cbdbebc3a4f4d4ce155613b4581e43c07208d513a6ba4d240ba84058a85f04b2188bfa406f70256f13f65')
  29.  
  30.  _gitname="mumble"
  31.  
  32. +if [[ ! ${_use_zeroc_ice} == "0" ]]; then
  33. +    depends+=('zeroc-ice')
  34. +fi
  35. +if [[ ${_use_grpc} == "1" ]]; then
  36. +    depends+=('grpc')
  37. +fi
  38. +
  39.  pkgver() {
  40.      cd ${srcdir}/$_gitname
  41.      git describe | sed 's/^v//;s/-/./g'
  42. @@ -42,11 +50,17 @@
  43.  
  44.      # build
  45.  
  46. -    if [[ $_use_zeroc_ice == "1" ]]; then
  47. -        qmake-qt5 main.pro CONFIG+="no-client"
  48. -    else
  49. -        qmake-qt5 main.pro CONFIG+="no-client no-ice"
  50. +    CONFIG_OPTS="no-client"
  51. +
  52. +    if [[ ${_use_zeroc_ice} == "0" ]]; then
  53. +   CONFIG_OPTS+=" no-ice"
  54.      fi
  55. +    if [[ ${_use_grpc} == "1" ]]; then
  56. +        CONFIG_OPTS+=" grpc"
  57. +    fi
  58. +
  59. +    echo "${CONFIG_OPTS}"
  60. +    qmake-qt5 main.pro CONFIG+="${CONFIG_OPTS}" > ${srcdir}/build.log 2>&1
  61.  
  62.      make release
  63.  }
  64. @@ -69,7 +83,11 @@
  65.      install -Dm644 ${srcdir}/murmur.service ${pkgdir}/usr/lib/systemd/system/murmur.service
  66.      install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
  67.  
  68. -    if [[ $_use_zeroc_ice == "1" ]]; then
  69. +    if [[ ${_use_zeroc_ice} == "1" ]]; then
  70.          install -Dm644 src/murmur/Murmur.ice ${pkgdir}/usr/share/murmur/Murmur.ice
  71.      fi
  72. +
  73. +    if [[ ${_use_grpc} == "1" ]]; then
  74. +        install -Dm644 src/murmur/MurmurRPC.proto ${pkgdir}/usr/share/murmur/MurmurRPC.proto
  75. +    fi
  76.  }
RAW Paste Data