desktop/frostwire/PKGBUILD
2012-03-15 01:23:50 +00:00

54 lines
1.7 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=frostwire
pkgver=5.3.3
pkgrel=1
pkgdesc="BitTorrent client with integrated search"
arch=('any')
url="http://www.frostwire.com"
license=('GPL3')
depends=('java-runtime' 'hicolor-icon-theme' 'desktop-file-utils')
optdepends=('mplayer: audio playback.'
'vlc: video playback.')
makedepends=('libicns')
source=(http://dl.frostwire.com/$pkgname/$pkgver/$pkgname-$pkgver.noarch.tar.gz)
# noextract=($pkgname-$pkgver.noarch.tar.gz) # Extraction fails because of wrong ends of line.
md5sums=('fcd02ddbb23f7a9fa6a531794408cff4')
package() {
# Extraction.
# tar -xf $pkgname-$pkgver.noarch.tar.gz &> /dev/null || true
cd $srcdir/$pkgname-$pkgver.noarch
# Fix Java version detection.
# sed \
# -e 's/head -n 1/grep version/' \
# -i $pkgname
# Install files.
install -d $pkgdir/usr/share/$pkgname
cp -r $pkgname *.gif *.jar *.properties $pkgdir/usr/share/$pkgname
# Desktop integration.
install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
icns2png -x -d 32 -s 512x512 FrostWire.icns &> /dev/null # Extract 512×512 PNG icon.
install -Dm644 FrostWire_512x512x32.png $pkgdir/usr/share/pixmaps/$pkgname.png
# Execution script.
install -dm755 $pkgdir/usr/bin
echo '#!/bin/bash' > $pkgdir/usr/bin/$pkgname
echo "cd /usr/share/$pkgname && ./$pkgname \$@" >> $pkgdir/usr/bin/$pkgname
chmod +x $pkgdir/usr/bin/$pkgname
# Documentation.
install -Dm664 changelog $pkgdir/usr/share/doc/$pkgname/ChangeLog
# License.
install -Dm664 COPYING $pkgdir/usr/share/licenses/$pkgname/license.txt
install -Dm664 EULA.txt $pkgdir/usr/share/licenses/$pkgname/EULA.txt
}