updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / plex / PKGBUILD
blobb93cfeb7a3051608ac4a8370d96c2380336917b3
1 # Contributor : Anish Bhatt <anish[removethis][at]gatech[dot]edu>
3 pkgname=plex
4 majorver=0.9.2.8
5 minorver=34480
6 pkgver=${majorver}_${minorver}
7 dver=v${majorver}-${minorver}ac-ubuntu
8 pkgrel=3
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
15         'plex-icon.png'
16         'plex.desktop')
17 md5sums=('25f6f105d4f5667122fb64f871680644'
18          '50103e17fe35809ddaaec3ae315d2d35'
19          'c905bd04a41d43a70f9778994e4ae33c')
21 depends=('avahi' 'curl')
22 options=(!strip)
23 license=('GPL' 'unknown')
24 package() {
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" 
31                         else
32                                 install -D "$file" ${pkgdir}/opt/plex/"$file" 
33                         fi || return 1
34                 done || return 1
35         popd
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