#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com #Former: George Vlahavas (vlahavas~at~gmail~dot~com, gapan@zenwalk forums) pkgname=frostwire pkgver=4.21.6 zenver=72 pkgrel=1 arch=i686 source=("http://downloads.sourceforge.net/frostwire/frostwire-$pkgver.noarch.tar.gz" \ "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/icons.tar.gz" \ "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/frostwire.desktop" \ "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/frostwire-launcher") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=http://www.frostwire.com sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname options=('norequiredbuilder' 'keepdepfile' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "frostwire - an open-source P2P file-sharing program" "FrostWire is an open-source peer-to-peer (P2P) file-sharing" "program. It uses the Gnutella network and is heavily based on the" "better-known LimeWire program. Frostwire looks almost like an exact" "replica of LimeWire. It also recently included BitTorrent support." ) build() { cd $startdir/src/$pkgname-$pkgver.noarch # Launch script mkdir -p $startdir/pkg/usr/bin mv $startdir/src/frostwire-launcher $startdir/pkg/usr/bin/frostwire chmod a+x $startdir/pkg/usr/bin/frostwire # Just copy stuff around mkdir -p $startdir/pkg/usr/share/$pkgname cp -a ./* $startdir/pkg/usr/share/$pkgname # except root dir rm -rf $startdir/pkg/usr/share/$pkgname/root # Copy icons to the right place ICONSIZES="64 48 32 16" for i in $ICONSIZES; do mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps; mv $startdir/src/$pkgname-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/$pkgname.png; done; # Remove unwanted files rm $startdir/pkg/usr/share/$pkgname/runFrostwireOSX.sh rm $startdir/pkg/usr/share/$pkgname/frostwire.desktop }