1 # Contributor: Praekon <praekon@googlemail.com>
2 # Contributor: Arthur <arthur.darcet@m4x.org>
3 # Contributor: Jon Wiersma <archaur@jonw.org>
5 pkgname=plexmediaserver
8 pkgdesc="Plex Media Server for Linux"
9 url="http://www.plexapp.com"
10 arch=('i686' 'x86_64')
12 depends=('avahi' 'rsync')
14 backup=("etc/conf.d/$pkgname")
16 install="$pkgname.install"
18 if [ "$CARCH" = "i686" ]; then
20 md5sums=('b74084ad5323d159fd493fdcfb0c6e11')
21 elif [ "$CARCH" = "x86_64" ]; then
23 md5sums=('3412883e0f22d7270940fb2625dac0ba')
24 depends+=('lib32-libxml2' 'lib32-sqlite3' 'lib32-boost-libs' 'lib32-curl')
27 source=("$url/repo/pool/main/p/${pkgname}/${pkgname}_${pkgver}-7a18da4_${_arch}.deb" "$pkgname.conf.d" "$pkgname.rc.d")
28 md5sums+=('cb0b32d853f2c8b760e62b391196a881'
29 '6c56f99a450b64af22abfd549d32eb38')
32 ar -xv plexmediaserver_${pkgver}-7a18da4_${_arch}.deb || return 1
33 tar -zxf data.tar.gz || return 1
37 mkdir -p $pkgdir/usr/lib/plexmediaserver
38 mkdir -p $pkgdir/etc/rc.d
40 cp -r usr/lib/plexmediaserver/* $pkgdir/usr/lib/plexmediaserver/
41 install -D -m644 plexmediaserver.conf.d $pkgdir/etc/conf.d/plexmediaserver
42 install -D -m755 plexmediaserver.rc.d $pkgdir/etc/rc.d/plexmediaserver