updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / plexmediaserver / PKGBUILD
blobc185a2d65b6bc8ae0d0e716f376c35c7bca72e30
1 # Contributor: Praekon <praekon@googlemail.com>
2 # Contributor: Arthur <arthur.darcet@m4x.org>
3 # Contributor: Jon Wiersma <archaur@jonw.org>
5 pkgname=plexmediaserver
6 pkgver=0.9.5.2
7 pkgrel=2
8 pkgdesc="Plex Media Server for Linux"
9 url="http://www.plexapp.com"
10 arch=('i686' 'x86_64')
11 license=('closed')
12 depends=('avahi' 'rsync')
13 replace=('plex')
14 backup=("etc/conf.d/$pkgname")
16 install="$pkgname.install"
18 if [ "$CARCH" = "i686" ]; then
19        _arch='i386'
20        md5sums=('b74084ad5323d159fd493fdcfb0c6e11')
21 elif [ "$CARCH" = "x86_64" ]; then
22        _arch='amd64'
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')
31 build() {
32        ar -xv plexmediaserver_${pkgver}-7a18da4_${_arch}.deb || return 1
33        tar -zxf data.tar.gz || return 1
36 package(){
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