blob: 424f5ced75c7b6de0574d8690592fa5c29761e5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: zoe <chp321 at gmail dot com>
pkgname=filecast
pkgver=1.0
pkgrel=4
arch=('any')
pkgdesc="Zero setup, cross platform desktop to smartphone transfer tool with GUI - Companion app for Raccoon"
url="https://www.onyxbits.de/filecast"
license=('Apache')
depends=('java-environment')
source=('filecast.desktop'
"https://github.com/onyxbits/FileCast/raw/master/src/main/resources/appicon-64.png"
"https://www.onyxbits.de/sites/default/files/download/339/${pkgname}-${pkgver}.jar")
noextract=("${pkgname}-${pkgver}.jar")
md5sums=('b728f63da5204098d15b9b189d15082a' #filecast.desktop
'415293972a77a101ddf2392618d85b74' #appicon-64.png
'ae0bb15e5669d16b551c49474dcc2d36') #${pkgname}-${pkgver}.jar
package() {
# install files to java shared dir
install -Dm644 -t "${pkgdir}/usr/share/java/${pkgname}/" ${pkgname}-${pkgver}.jar
# install icon and desktop database entry
install -Dm644 appicon-64.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
install -Dm644 -t "${pkgdir}/usr/share/applications/" ${pkgname}.desktop
# starter
mkdir -p "${pkgdir}/usr/bin"
cat > "${pkgdir}/usr/bin/filecast" << \here
#!/bin/sh
exec java -Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dfilecast.home="$HOME/.Filecast" -jar /usr/share/java/filecast/filecast-pkgver.jar "$@"
exit $?
here
sed -i "s/pkgver/${pkgver}/" "${pkgdir}/usr/bin/${pkgname}"
chmod a+x "${pkgdir}/usr/bin/${pkgname}"
}
|