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

mediatomb PKGBUILD

By: ImNtReal on Jul 16th, 2012  |  syntax: Bash  |  size: 2.32 KB  |  views: 162  |  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: Peter Richard Lewis <plewis@aur.archlinux.org>
  2. # Contributor: William Rea <sillywilly@gmail.com>
  3. # Contributor: Nikhil Bysani <nikron@gmail.com>
  4. # Contributor: Mika Hynnä <igheax@gmail.com>
  5. # Contributor: Jonathan Conder <jonno.conder@gmail.com>
  6.  
  7. pkgname=mediatomb
  8. pkgver=0.12.1
  9. pkgrel=8
  10. pkgdesc="Free UPnP/DLNA media server"
  11. arch=('i686' 'x86_64')
  12. url="http://mediatomb.cc/"
  13. license=('GPL')
  14. depends=('file' 'curl' 'ffmpegthumbnailer' 'js' 'libexif' 'libmp4v2' 'sqlite3' 'taglib')
  15. backup=('etc/conf.d/mediatomb')
  16. install=mediatomb.install
  17. source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
  18.         'mediatomb.rc'
  19.         'mediatomb.conf'
  20.         'gcc46.patch'
  21.         'tonewjs.patch'
  22.         'jsparse.patch'
  23.         'libav_0.7_support.patch'
  24.         'libavformat_0.11_support.patch'
  25.         'libmp4v2_191_p497.patch')
  26. sha256sums=('31163c34a7b9d1c9735181737cb31306f29f1f2a0335fb4f53ecccf8f62f11cd'
  27.             '1a67a1deb8a41467fe9bbf66358a255f0df97b0170a5fc3d48c1f768c8d328b9'
  28.             'ba9753a4a380d4c717c987efec03a3c6d401d3ff93a6fced28098adbd3a44cc9'
  29.             '0c02a20032f0c296800b1bb9644638970c2dedbc5ab7141d66a637235e9da6ce'
  30.             '2cd8f5628c3a38b290526f008bae351b90211825f86e5959bf95f140748de574'
  31.             'd9a3062858900d32b977f0d50d168fd7d36785b6ecc038c019e661e27f7b1c17'
  32.             'c6523e8bf5e2da89b7475d6777ef9bffe7d089752ef2f7b27b5e39a4130fb0ff'
  33.             '76b11706d70ed8f5e157d96ca441c90c46c42176102fcb651b4ab1102b61bfee'
  34.             'd39c2f9aab051c5447461718fd0ec72cf5982f6c920a4a985a50831f34babe84')
  35.  
  36. build() {
  37.   cd "$srcdir/$pkgname-$pkgver"
  38.   patch -Np1 -i "$srcdir/gcc46.patch"
  39.   patch -Np1 -i "$srcdir/tonewjs.patch"
  40.   patch -Np1 -i "$srcdir/jsparse.patch"
  41.   patch -Np1 -i "$srcdir/libav_0.7_support.patch"
  42.   patch -Np1 -i "$srcdir/libmp4v2_191_p497.patch"
  43.   patch -Np1 -i "$srcdir/libavformat_0.11_support.patch"
  44.  
  45.   ./configure --prefix=/usr \
  46.               --disable-mysql \
  47.               --enable-libmagic \
  48.               --enable-libjs \
  49.               --enable-ffmpeg
  50.   make
  51. }
  52.  
  53. package() {
  54.   cd "$srcdir/$pkgname-$pkgver"
  55.  
  56.   make DESTDIR="$pkgdir/" install
  57.  
  58.   install -D -m0755 "$srcdir/mediatomb.rc" "$pkgdir/etc/rc.d/mediatomb"
  59.   install -D -m0755 "$srcdir/mediatomb.conf" "$pkgdir/etc/conf.d/mediatomb"
  60.   install -d "$pkgdir/var/lib/mediatomb"
  61. }
clone this paste RAW Paste Data