SHARE
TWEET

djmount-PKBUILD

reebypastalina May 13th, 2015 273 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. pkgname=djmount
  3. pkgver=0.71
  4. pkgrel=5
  5. _debpatch=7
  6. pkgdesc="A UPnP AV client that mounts media server contents as a filesystem."
  7. arch=('i686' 'x86_64')
  8. url="http://djmount.sourceforge.net/"
  9. license=('GPL')
  10. depends=('fuse' 'libupnp' 'talloc')
  11. source=(
  12.   "http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
  13.   "http://ftp.de.debian.org/debian/pool/main/d/$pkgname/${pkgname}_$pkgver-$_debpatch.debian.tar.xz"
  14.   djmount.confd  djmount.service  djmount.tmpfilesd  djmount.install
  15. )
  16. install='djmount.install'
  17.  
  18. prepare() {
  19.   cd "$srcdir/$pkgname-$pkgver"
  20.   patch -p1 < "$srcdir/debian/patches/000_djmount.1.diff"
  21.   patch -p1 < "$srcdir/debian/patches/001-libupnp-1.6.6.diff"
  22.   patch -p1 < "$srcdir/debian/patches/002-libupnp-1.6.13.diff"
  23.   patch -p1 < "$srcdir/debian/patches/003-support-fstab-mounting.diff"
  24.   patch -p1 < "$srcdir/debian/patches/004-avoid-crash-by-using-size_t.diff"
  25. }
  26.  
  27. build() {
  28.   cd "$srcdir/$pkgname-$pkgver"
  29.   ./configure --prefix=/usr --with-external-talloc --with-external-libupnp --with-libupnp-prefix=/usr
  30.   make
  31. }
  32.  
  33. package() {
  34.   cd "$srcdir/$pkgname-$pkgver"
  35.   make DESTDIR=$pkgdir install
  36.   install -D -m644 $srcdir/djmount.confd $pkgdir/etc/conf.d/djmount
  37.   install -D -m644 $srcdir/djmount.service $pkgdir/usr/lib/systemd/system/djmount.service
  38.   install -D -m644 $srcdir/djmount.tmpfilesd $pkgdir/usr/lib/tmpfiles.d/djmount.conf
  39.   install -D -m644 "$srcdir/$pkgname-$pkgver/djmount.1" ${pkgdir}/usr/share/man/man1/djmount.1
  40. }
  41.  
  42. md5sums=(
  43.   'c922753e706c194bf82a8b6ca77e6a9a'
  44.   'cee9b3cbf9dbea62afef72be3a631fd7'
  45.   '3464de7af2e7e9adfb69fe33b7685a4c'
  46.   '081cddf22fc6d7867c76e0c3b5a17ae2'
  47.   'd214e88bb3f8b58a9ab709455e8b4ee0'
  48.   '906908098df2b1b89e9744a5a43f5073'
  49. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top