This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 10th, 2013  |  syntax: Bash  |  size: 1.17 KB  |  views: 381  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: techryda <techryda at silentdome dot com>
  2. # Contributor: Mathias R. <pu154r@overlinux.org>
  3. # Contributor: Nuno Araujo <nuno.araujo@russo79.com>
  4. pkgname=xrdp
  5. pkgver=0.6.0
  6. pkgrel=3
  7. pkgdesc="An open source remote desktop protocol (RDP) server"
  8. url="http://xrdp.sourceforge.net/"
  9. arch=('i686' 'x86_64')
  10. license=('GPL')
  11. depends=('tigervnc')
  12. source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-v$pkgver.tar.gz" "xrdp.service" "xrdp-sesman.service" "fix_for_automake-1.13.patch")
  13. md5sums=('b2577256b5a34bd72849cd40375c92de'
  14.          '0b4ed623768da8767adac9283970ccac'
  15.          'd9cedfc66854f239c8de113be4cd3f48'
  16.          '34847deb0af0f72690550d3112bafb81')
  17.  
  18. build() {
  19.   cd "${pkgname}-v${pkgver}"
  20.   patch -p1 -i $srcdir/fix_for_automake-1.13.patch
  21.   ./bootstrap
  22.   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  23.   make
  24. }
  25.  
  26. package() {
  27.   cd "${pkgname}-v${pkgver}"
  28.   make DESTDIR="$pkgdir" install
  29.   cd ${pkgdir}
  30.   # Install systemd service files
  31.   mkdir -p usr/lib/systemd/system
  32.   cp ${srcdir}/*.service usr/lib/systemd/system
  33.   # Fix path in xrdp.sh file
  34.   sed -i 's|/usr/local/|/usr/|' etc/xrdp/xrdp.sh
  35. }
clone this paste RAW Paste Data