mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
62 lines
2.0 KiB
Bash
62 lines
2.0 KiB
Bash
# Maintainer: UtG <utg.chakra.linux[AT]gmail[dot]com>
|
|
# Contributor: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
pkgname=frostwire
|
|
pkgver=5.7.3
|
|
pkgrel=1
|
|
pkgdesc="BitTorrent client with integrated search"
|
|
arch=('x86_64')
|
|
url="http://www.frostwire.com"
|
|
license=('GPL')
|
|
depends=('java-runtime' 'mplayer' 'hicolor-icon-theme' 'desktop-file-utils')
|
|
optdepends=('vlc: video playback.')
|
|
makedepends=('libicns')
|
|
categories=('network')
|
|
source=(http://dl.frostwire.com/$pkgname/$pkgver/$pkgname-$pkgver.noarch.tar.gz
|
|
frostwire.sh
|
|
icons.tar.gz
|
|
java-version-detection.patch)
|
|
md5sums=('baaeb061a225b7bba7fdb4d9cb9a284a'
|
|
'd0a1bc0a1360ca83c20dbe7b02ab5555'
|
|
'dbea03ff4e35cc6c190976282682c2cf'
|
|
'3076e0c9431b3bbf6a2be7bd1b05543b')
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver.noarch
|
|
|
|
# FS#15544 (Java version detection fails when _JAVA_OPTIONS is set)
|
|
patch -Np0 -i "$srcdir/java-version-detection.patch"
|
|
|
|
|
|
# Install files.
|
|
#install -d $pkgdir/usr/share/$pkgname
|
|
#cp -r $pkgname *.jar $pkgdir/usr/share/$pkgname
|
|
install -d "$pkgdir/usr/share/$pkgname"
|
|
cp -r * "$pkgdir/usr/share/$pkgname"
|
|
cp -r "$srcdir/icons" "$pkgdir/usr/share"
|
|
|
|
# Desktop integration.
|
|
install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
|
|
install -Dm644 "$srcdir/icons/hicolor/16x16/apps/$pkgname.png" \ "$pkgdir/usr/share/pixmaps/$pkgname.png"
|
|
|
|
# Execution script.
|
|
#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.
|
|
install -Dm664 COPYING $pkgdir/usr/share/licenses/$pkgname/license.txt
|
|
install -Dm664 EULA.txt $pkgdir/usr/share/licenses/$pkgname/EULA.txt
|
|
|
|
# Remove uneeded files
|
|
rm -rf "$pkgdir"/usr/share/frostwire/{runFrostwireOSX.sh,unpack200.py,root/{.svn,magnet10/.svn}}
|
|
}
|
|
|
|
|