Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

forked-daapd PKGBUILD

By: thebopshoobop on Apr 20th, 2011  |  syntax: Bash  |  size: 3.14 KB  |  views: 245  |  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: Kosta Welke <kosta@fillibach.de>
  2. # I wrote this PKGBUILD as it's needed by forked-daapd, I could not find the
  3. # original url (domain seems abandoned). But it's mirrored by forked-daapd,
  4. # so I put that as the url.pkgname=forked-daapd
  5. pkgver=0.15
  6. pkgrel=1
  7. pkgdesc="forked-daapd is an iTunes-compatible media server, originally intended as a rewrite of Firefly Media Server (mt-daapd)."
  8. arch=('i686' 'x86_64')
  9. url="http://www.jblache.org/projects/daapd/"
  10. license=('GPL')
  11. groups=()
  12. depends=(pkg-config avahi sqlite3 ffmpeg confuse libevent mxml libgcrypt zlib libunistring flac taglib libplist libantlr3c libavl-for-forked-daapd gperf libevent1)
  13. makedepends=()
  14. optdepends=()
  15. provides=()
  16. conflicts=()
  17. replaces=()
  18. backup=(etc/forked-daapd.conf etc/avahi/services/forked-daapd.service)
  19. options=()
  20. install=forked-daapd.install
  21. changelog=
  22. source=(http://alioth.debian.org/~jblache/forked-daapd/$pkgname-$pkgver.tar.gz forked-daapd.install forked-daapd forked-daapd.service)
  23. noextract=()
  24. md5sums=('8675bfaa3db10ea0aebfe27d4cfa5202'
  25.          '9c8bf7589119045c20e951ab56d3e3b8'
  26.          '04bfd583f7cd73c9c3fd166c3bc49cf6'
  27.          'c01fde6f40880fed6092c0830a5f232e')
  28. sha1sums=('c85b05c94a76a8835a46a48d7959e9980c912e17'
  29.           'a21a31d23469c36b3001e4ba3c8cedfb1ec97c9a'
  30.           'e0f42d8e98d3395a72b3b2b42b04aab84200e84a'
  31.           'a6f3c5ee05365481caaa569fe15ca34ffe4dc847')
  32. sha256sums=('4774916558fd920921654abfbc91ffd7a9841ab47a286f41627b0e76c27177fc'
  33.             '963afb3c79468f718cfe0e93c9b6fe365df918d1a3bc7faa36bec8c1c6496f1c'
  34.             'b5b5cbb5108b00ee1db63cd580c010862d48c50c24324035ee242e21b4b3e9b8'
  35.             '0efc8aac56d2b3a70d74c90a72595f3b685a30ee94a278880cd0cc4db35fa113')
  36. sha384sums=('10b405d3d6543effb64ad27a2d06a6da287655045db7699438d193372aec98f8fe3e0c801471f5d02f2513116622fb38'
  37.             '673f62a43d3c200d00bf832a801d895ee8a023ffbff9f59cc4aa8a1a5ffa70addd68b2be90db0807b15708380d198111'
  38.             'f3c28005de6a67917d0054a12352fe03b15774275994c6ee2f3d37d727fc207785e27a068d68a5e031400f5fb4540304'
  39.             '36bdb6cfc389572f7f34658307b68f31d79ba9a5827eeee60c43f042f3d75d90c9d76e90840258e57e59c5c4d8d47d52')
  40. sha512sums=('3ac76abda12a045079422bc813c08331015fe09237be6ea61066f77a281fef01951e338e93d4813eff00c74d51ae6bf0a9b3fa20a9424812311ae5ff7818a2f5'
  41.             '25b631071001ce726dfc4684bd5c7e8c8fcfddf952de139b8277ce2cbdd49d3f4a6b8d2f22e68674849ff4bb3cd345402e64c86423d4dfca595478eb46076f19'
  42.             '068e6768be3e83e046566948f226d6e27521a98d32861e8ee4a8c7eea7dac03c267eff8934db03690f4bf8eabd1c4609b2424cad8e147e80c08f07f8fd74c5a1'
  43.             '70da9a199ac821736ea6cd33455c14cf32ab5bc4b401dc31179dc6029c36fcb543810d0041f309fdcfd7be84d7d1f921b63a70993ad89b6f0c1ea06e51859dfb')
  44.  
  45. build() {
  46.   cd "$srcdir/$pkgname-$pkgver"
  47.  
  48.   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-flac --enable-musepack --enable-itunes
  49.   make
  50. }
  51.  
  52. package() {
  53.   cd "$srcdir/$pkgname-$pkgver"
  54.  
  55.   install -D -m0755 $srcdir/forked-daapd $pkgdir/etc/rc.d/forked-daapd || return 1
  56.   install -D -m0755 $srcdir/forked-daapd.service $pkgdir/etc/avahi/services/forked-daapd.service || return 1
  57.   make DESTDIR="$pkgdir/" install
  58. }