updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / pando / PKGBUILD
blob5c291d2e928ca9536673c8998f6546dce8bcae12
1 #Contributor: Dario Andres Rodriguez <darzephyr@gmail.com>
3 pkgname=pando
4 _pkgname=pandodl
5 pkgver=0.9.2.0
6 pkgrel=2
7 pkgdesc="Free personal P2P software that makes sending, receiving and publishing large files a breeze."
8 arch=(i686)
9 url="http://www.pando.com/phpbb/viewtopic.php?t=4046"
10 license="custom"
11 depends=('gtk2' 'libstdc++5' 'e2fsprogs' 'nss' 'libtiff')
12 source=(http://www.pando.com/dl/download/$_pkgname-$pkgver.tar.bz2 'pandodl_fix' 'pando.desktop' 'license.txt')
13 md5sums=('94ab8db83b3628e648d8cabb603ba88b' 'f6545a5a17650fe61ff240b3d84ca65f' \
14         'a7c0f0ce8cea666ca92dce2b89a0074a' '8edcb50b765498b4810c49e0b116aa6d')
16 build() {
17         
18         cd $startdir/src/$_pkgname-21684
19         
20         mkdir -p $startdir/pkg/opt/pando/
21         mkdir -p $startdir/pkg/usr/share/{applications,pixmaps,licenses/pando}
23         cp {bin,lib,README} $startdir/pkg/opt/pando/ -r
24         
25         #Pandodl with absolute path
26         cp $startdir/src/pandodl_fix $startdir/pkg/opt/pando/pandodl    
27         
28         #Icon and .Desktop
29         cp pando_icon48.png $startdir/pkg/usr/share/pixmaps
30         cp $startdir/src/pando.desktop $startdir/pkg/usr/share/applications
31         
32         #License
33         cp $startdir/src/license.txt $startdir/pkg/usr/share/licenses/pando/license.txt
34         
35         #Symlink
36         mkdir -p $startdir/pkg/usr/bin
37         ln -s /opt/pando/pandodl $startdir/pkg/usr/bin/pandodl
38         
39         # Remove "nspr" libs
40         rm $startdir/pkg/opt/pando/lib/{libnspr4.so,libplc4.so,libplds4.so}
41         #Remove "nss" libs
42         rm $startdir/pkg/opt/pando/lib/{libfreebl3.so,libnss3.so,libnssckbi.so,libsmime3.so,libsoftokn3.so,libssl3.so}
43         
44         #libtiff fix (?)
45         ln -s /usr/lib/libtiff.so $startdir/pkg/opt/pando/lib/libtiff.so.4
46