Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 6th, 2010  |  syntax: Bash  |  size: 2.18 KB  |  hits: 167  |  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. Index: PKGBUILD
  2. ===================================================================
  3. --- PKGBUILD    (revision 1)
  4. +++ PKGBUILD    (revision 4)
  5. @@ -1,3 +1,4 @@
  6. +# Maintainer: Soup <soup a.t soultrap d.o.t n.e.t>
  7.  # Contributor: Michele Schäuble <mschaeuble@swissonline.ch>
  8.  
  9.  pkgname=djmount
  10. @@ -2,22 +3,32 @@
  11.  pkgver=0.71
  12. -pkgrel=1
  13. +pkgrel=2
  14. +_debpatch=3
  15.  pkgdesc="A UPnP AV client that mounts media server contents as a filesystem."
  16.  arch=('i686' 'x86_64')
  17.  url="http://djmount.sourceforge.net/"
  18.  license=('GPL')
  19. -depends=('fuse' 'libupnp')
  20. -source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz \
  21. -        djmount.rcd djmount.confd)
  22. -md5sums=('c922753e706c194bf82a8b6ca77e6a9a' \
  23. -         'f473b5150df385447f2f58049bfb6199' \
  24. +depends=('fuse' 'libupnp' 'talloc')
  25. +source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
  26. +        "http://ftp.de.debian.org/debian/pool/main/d/$pkgname/${pkgname}_$pkgver-$_debpatch.diff.gz"
  27. +        'djmount.rcd'
  28. +        'djmount.confd')
  29. +md5sums=('c922753e706c194bf82a8b6ca77e6a9a'
  30. +         '00c5b6df865c8ffcd29b37de6f5503bf'
  31. +         'f473b5150df385447f2f58049bfb6199'
  32.           '21de4c947c17e8558f1007a20757f254')
  33.  
  34.  build() {
  35. -  cd $startdir/src/$pkgname-$pkgver
  36. -  ./configure --prefix=/usr --with-external-libupnp --with-libupnp-prefix=/usr
  37. -  make || return 1
  38. -  make DESTDIR=$startdir/pkg install
  39. +  cd $srcdir
  40. +  patch -p0 < "${pkgname}_$pkgver-$_debpatch.diff"
  41. +  patch -p0 < "$pkgname-$pkgver/debian/patches/000_djmount.1.diff"
  42. +  patch -p0 < "$pkgname-$pkgver/debian/patches/001-libupnp-1.6.6.diff"
  43.  
  44. -  install -D -m755 $startdir/src/djmount.rcd $startdir/pkg/etc/rc.d/djmount
  45. -  install -D -m644 $startdir/src/djmount.confd $startdir/pkg/etc/conf.d/djmount
  46. +  cd "$srcdir/$pkgname-$pkgver"
  47. +  ./configure --prefix=/usr --with-external-talloc --with-external-libupnp --with-libupnp-prefix=/usr
  48. +  make
  49. +  make DESTDIR=$pkgdir install
  50. +
  51. +  install -D -m755 $srcdir/djmount.rcd $pkgdir/etc/rc.d/djmount
  52. +  install -D -m644 $srcdir/djmount.confd $pkgdir/etc/conf.d/djmount
  53. +  install -D -m644 "$srcdir/$pkgname-$pkgver/djmount.1" ${pkgdir}/usr/share/man/man1/djmount.1
  54.  }