blob: 4150a0205c816079aa37f7ab4d7fe92609ed0be9 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Maintainer: tblFlip <root@tblflip.de
# Contributor: lsf
pkgname=briar-desktop-bin
_pkgname=briar-desktop
pkgver=0.6.2.beta
pkgrel=1
_bin_ver=0.6.2
_build_type=beta
pkgdesc='Prototyping the next generation for Briar on desktop devices'
arch=(any)
url="https://code.briarproject.org/briar/briar-desktop"
license=('GPL')
depends=('java-runtime=17' 'bash')
conflicts=(${_pkgname})
provides=(${_pkgname})
source=(
"https://desktop.briarproject.org/jars/linux/${_bin_ver}-${_build_type}/${_pkgname}-linux-${_bin_ver}-${_build_type}.jar"
"${_pkgname}.svg::https://code.briarproject.org/briar/${_pkgname}/-/raw/main/${_pkgname}/src/main/resources/images/logo_circle.svg"
"briar16.png" "briar32.png" "briar48.png" "briar64.png" "briar128.png" "briar192.png"
"${_pkgname}.desktop"
"metainfo-${_bin_ver}-${_build_type}.xml::https://code.briarproject.org/briar/briar-desktop/-/raw/${_bin_ver}-${_build_type}/${_pkgname}/src/appResources/linux/org.briarproject.Briar.metainfo.xml"
)
noextract=("${_pkgname}-linux-${_bin_ver}-${_build_type}.jar")
sha256sums=(
"3befb93032ca52265014123b464617701345a55b2877071323fc5bfda901daf1"
"95400a8578272600e0b350c4b664c09631c737ce11e750faefe27473460d7923"
"965d7c617e345b809f84c8bf73d9cb0acaf763c16a4b367698218b90c1c92669"
"3feb96f9b9c01085170a44fdbf8bca43b1e586fe3b68dab37fb5cb9fd4ca1fa6"
"3ba1a6a3561f3b879d8295cf3397bda6c7710f138f6cbd7effe4f650765610a0"
"25eb65911af5e85d193e0d60418757a2ffe7b3d7d9d3debc41259bc0503972a7"
"2a3e508279c2a440372bf73da2c4acf56a9b7a0bcad886a74863f5a723413a93"
"a00d60b7aa59fb573c2e42f8bb4c23eb7038c91ea5ced47ebf9d537e3f3925cf"
"ac7f0dc86bce256dc80fbee7c65705b6dc9cdbd8f0ad942f0535f82b65ef2f83"
"f0c74511bdb5102882e2bf0ebccde9eadebcf1712c9532f229c2fe59a7509b3a"
)
package() {
install -dm755 "$pkgdir/usr/bin/"
cat << EOF > "$pkgdir/usr/bin/$_pkgname"
#!/bin/sh
exec /usr/lib/jvm/java-17-openjdk/bin/java -jar '/usr/share/java/briar-desktop.jar' "\$@"
EOF
chmod +x "$pkgdir/usr/bin/$_pkgname"
install -m 644 -D ${_pkgname}-linux-${_bin_ver}-${_build_type}.jar "$pkgdir/usr/share/java/$_pkgname.jar"
install -Dm644 ${srcdir}/briar-desktop.svg \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/$_pkgname.svg"
# generated with inkscape from the svg
# just seemed unreasonable to require inkscape as a makedep
# for size in 16 32 48 64 128 192; do
# inkscape --export-background-opacity=0 \
# --export-width=${size} --export-type=png \
# --export-filename=${size}.png briar-desktop.svg
# done
for i in 16 32 48 64 128 192; do
install -Dm644 ${srcdir}/briar${i}.png \
"$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/$_pkgname.png"
done
install -Dm644 ${srcdir}/$_pkgname.desktop \
"$pkgdir/usr/share/applications/$_pkgname.desktop"
install -Dm644 ${srcdir}/metainfo-${_bin_ver}-${_build_type}.xml \
"$pkgdir/usr/share/metainfo/org.briarproject.Briar.metainfo.xml"
}
|