desktop/frostwire/PKGBUILD

49 lines
1.7 KiB
Bash
Raw Normal View History

pkgname=frostwire
2016-09-18 14:54:30 +08:00
pkgver=6.3.6
pkgrel=1
pkgdesc="BitTorrent client with integrated search"
2013-08-08 17:46:29 +08:00
arch=('x86_64')
url="http://www.frostwire.com"
2014-04-02 07:12:25 +08:00
license=('GPL')
depends=('java-runtime' 'mplayer' 'hicolor-icon-theme' 'desktop-file-utils')
optdepends=('vlc: video playback.')
makedepends=('libicns')
categories=('network')
2015-10-19 04:02:52 +08:00
source=("http://dl.frostwire.com/$pkgname/$pkgver/$pkgname-$pkgver.noarch.tar.gz"
2015-05-06 00:00:34 +08:00
'frostwire.sh'
'frostwire.png')
2016-09-18 14:54:30 +08:00
sha1sums=('989c329b153ddeb64d1b9233600123cef08fe2d3'
2016-02-23 02:39:58 +08:00
'714de391242da05375b39f632e6d8348ccbafcac'
'fb5cafa9ca8b9666c2c9940ba7d6adbdfbc00743')
package() {
2015-10-19 04:02:52 +08:00
cd $srcdir/$pkgname-$pkgver.noarch
2014-04-02 07:12:25 +08:00
# Install files.
2014-04-02 07:12:25 +08:00
#install -d $pkgdir/usr/share/$pkgname
#cp -r $pkgname *.jar $pkgdir/usr/share/$pkgname
2015-05-06 00:00:34 +08:00
install -d $pkgdir/usr/share/{frostwire,pixmaps}
2014-04-02 07:12:25 +08:00
cp -r * "$pkgdir/usr/share/$pkgname"
2015-05-06 00:00:34 +08:00
cp -r "../../frostwire.png" "$pkgdir/usr/share/pixmaps/frostwire.png"
# Desktop integration.
2014-04-02 07:12:25 +08:00
install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
# Execution script.
2014-04-02 07:12:25 +08:00
#install -dm755 $pkgdir/usr/bin
install -D "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
#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.
2015-05-06 00:00:34 +08:00
install -Dm664 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
install -Dm664 EULA.txt $pkgdir/usr/share/licenses/$pkgname/EULA
2014-04-02 07:12:25 +08:00
# Remove uneeded files
rm -rf "$pkgdir"/usr/share/frostwire/{runFrostwireOSX.sh,unpack200.py,root/{.svn,magnet10/.svn}}
}