1 # Contributor : Anish Bhatt <anish[removethis][at]gatech[dot]edu>
6 pkgver=${majorver}_${minorver}
7 dver=v${majorver}-${minorver}ac-ubuntu
10 pkgdesc='Plex Media Server'
11 url='http://www.plexapp.com/linux'
12 arch=('i686' 'x86_64')
14 source=(http://www.plexapp.com/releases/PlexMediaServer-$dver.tar.bz2
17 md5sums=('25f6f105d4f5667122fb64f871680644'
18 '50103e17fe35809ddaaec3ae315d2d35'
19 'c905bd04a41d43a70f9778994e4ae33c')
21 depends=('avahi' 'curl')
23 license=('GPL' 'unknown')
25 install -d -m755 ${pkgdir}/opt/plex/
26 pushd ${srcdir}/PlexMediaServer-v${majorver}-${minorver}ac/
27 sed -i 's/\.\/Plex/${SCRIPTPATH}\/Plex/' start.sh
28 find . | sed -e 's/\.\///g' | while read file; do
29 if [ -d "$file" ]; then
30 install -d ${pkgdir}/opt/plex/"$file"
32 install -D "$file" ${pkgdir}/opt/plex/"$file"
37 install -d ${pkgdir}/usr/share/applications
38 install -D -m644 ${srcdir}/plex.desktop ${pkgdir}/usr/share/applications/
39 install -d ${pkgdir}/usr/share/pixmaps
40 install -D -m644 plex-icon.png ${pkgdir}/usr/share/pixmaps/plex-icon.png