updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / bin32-pando / PKGBUILD
blob72de22759475c364d5ee4bb68d4705366de84665
1 #Contributor: mightyjaym <jm.ambrosino@free.fr>
3 pkgname=bin32-pando
4 _pkgname=pandodl
5 pkgver=0.9.2.0
6 pkgrel=4
7 pkgdesc="Free personal P2P software that makes sending, receiving and publishing large files a breeze."
8 arch=(x86_64)
9 url="http://www.pando.com/phpbb/viewtopic.php?t=4046"
10 license="custom"
11 depends=('lib32-gtk2' 'lib32-libstdc++5' 'lib32-e2fsprogs' 'lib32-nss' 'lib32-libtiff' 'lib32-nspr'  'lib32-gstreamer0.10-base' 'lib32-gconf' 'lib32-libxdamage' 'lib32-sqlite3')
12 source=(http://www.pando.com/dl/download/$_pkgname-$pkgver.tar.bz2 'pandodl_fix' 'pando.desktop' 'license.txt')
13 md5sums=('94ab8db83b3628e648d8cabb603ba88b' 'b123587d456232c0ff294c9bd262274b' \
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/bin32-pando}
23         cp {bin,lib,README} $startdir/pkg/opt/pando/ -r
24         
25         #Pandodl with absolute path
26         install -D -m755  $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/bin32-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 /opt/lib32/usr/lib/libtiff.so $startdir/pkg/opt/pando/lib/libtiff.so.4
46