Guest User

Untitled

a guest
Jan 7th, 2018
137
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.04 KB | None
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index a4f8c01..f0ddcd0 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -2,6 +2,7 @@
  6.  # OldMaintainer: FreeK <stephan@confidr.me>
  7.  # Contributor: olav-st <olav.s.th@gmail.com>
  8.  # Contributor: David Manouchehri <manouchehri@riseup.net>
  9. +# Contributor: fatalis <fatalis@fatalis.pw>
  10.  
  11.  ### BUILD OPTIONS
  12.  # Set to n to disable nomachine service autostart
  13. @@ -17,7 +18,7 @@ _pkgrel_x86_64=2
  14.  _pkgrel_armv6h=1
  15.  _pkgrel_armv7h=1
  16.  _pkgrel_armv8h=1
  17. -pkgrel=1
  18. +pkgrel=2
  19.  pkgdesc="Remote desktop application"
  20.  groups=('network')
  21.  url="http://www.nomachine.com"
  22. @@ -26,12 +27,14 @@ arch=('x86_64' 'i686' 'armv6h' 'armv7h' 'armv8h')
  23.  options=('!strip')
  24.  conflicts=('nxmanager nxwebplayer nxserver nxnode nxclient')
  25.  depends=('bash' 'openssh')
  26. -sha512sums_x86_64=('de6bf0bd3fc67a2ae3174f69d20cf455043e313d60e3c116a66609ad7e2b6dcb20c1961944d3013c1ed098c43ee001663a448dfe0df53b5b3d0da62abfd2029d')
  27. +sha512sums_x86_64=('de6bf0bd3fc67a2ae3174f69d20cf455043e313d60e3c116a66609ad7e2b6dcb20c1961944d3013c1ed098c43ee001663a448dfe0df53b5b3d0da62abfd2029d'
  28. +                   'c98a543e4743c6ca6e3dd278d82ecd8227aefd70443445d989c8845933c113406988f8aae0b28ffa00e10974512ea8e2d81f2f428da6efa259a0f46d87841cbc')
  29.  sha512sums_i686=('5645d5ec581f4c32ac17c4f99a5e3ecaec0e95b7284756b844aeb1416db63feeb9418f7a68eb52c833fe0c195f71de8b1002bab9861166d46c5ff0d9f8fa7c15')
  30.  sha512sums_armv6h=('c4870c7a61bf1383aa9db5195cd1ddfd588b68c099b47a4c09577d735308e04dc7061fa089a052c506a70ea77436e4e3d84498fe52f9897a79dc4e59a04060c0')
  31.  sha512sums_armv7h=('1d156eed6d65861eaabe4557fd979274a77011a77d65a7eb04e46bf1f628aad7844c6a540d509efde50bdb3e859fddb944cd1f47319b2722453c34fc9c9cf020')
  32.  sha512sums_armv8h=('408017bfe0f287c3ce59f38835cd990a5902041e9faac48b1a2f79f6410e0f09d8eb7be20dea1a5f44ce22b72955f9b78e00c1fc3f1e5aa2d720708f3a68a4d5')
  33. -source_x86_64=("http://download.nomachine.com/download/6.0/Linux/${pkgname}_${pkgver}_${_pkgrel_x86_64}_x86_64.tar.gz")
  34. +source_x86_64=("http://download.nomachine.com/download/6.0/Linux/${pkgname}_${pkgver}_${_pkgrel_x86_64}_x86_64.tar.gz"
  35. +               "http://download.nomachine.com/downloads/6.0/sources/libx264-${pkgver}.tar.gz")
  36.  source_i686=("http://download.nomachine.com/download/6.0/Linux/${pkgname}_${pkgver}_${_pkgrel_i686}_i686.tar.gz")
  37.  source_armv6h=("http://download.nomachine.com/download/6.0/Linux/${pkgname}_${pkgver}_${_pkgrel_armv6h}_armv6hl.tar.gz")
  38.  source_armv7h=("http://download.nomachine.com/download/6.0/Linux/${pkgname}_${pkgver}_${_pkgrel_armv7h}_armv7hl.tar.gz")
  39. @@ -69,11 +72,24 @@ rm -fr "$srcdir/NX/etc/server-fedora.cfg.sample"
  40.  fi
  41.  }
  42.  
  43. +build()
  44. +{
  45. +if [ $CARCH = 'x86_64' ]; then
  46. +cd "$srcdir/libx264-$pkgver"
  47. +./configure --disable-cli --enable-shared --disable-avs --disable-swscale --disable-lavf --disable-ffms --disable-gpac
  48. +make
  49. +fi
  50. +}
  51. +
  52.  package()
  53.  {
  54.  cd "$srcdir"
  55.  mkdir "$srcdir/NX/etc" -p
  56.  install -d "$pkgdir/usr/"
  57.  cp -a NX "$pkgdir/usr/NX"
  58. +if [ $CARCH = 'x86_64' ]; then
  59. +mkdir "$srcdir/NX/lib" -p
  60. +cp -a "$srcdir/libx264-$pkgver/libx264.so"* "$pkgdir/usr/NX/lib/libx264.so"
  61. +fi
  62.  }
RAW Paste Data Copied