blob: 7303cdd6fc26dcadc34c8bfe570e5651bc8fefde (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Maintainer: tblFlip <root@tblflip.de
# Contributor: lsf
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=('x86_64' 'aarch64' 'armv7h')
url="https://code.briarproject.org/briar/briar-desktop"
license=('GPL')
depends=('java-runtime=17' 'bash')
makedepends=('git' 'java-environment=17')
source=(
"${pkgname}::git+https://code.briarproject.org/briar/briar-desktop.git#tag=${_bin_ver}-${_build_type}"
"briar::git+https://code.briarproject.org/briar/briar.git#commit=f16875c6025701498ef8a1a988be8dd86dba7c38"
"briar16.png" "briar32.png" "briar48.png" "briar64.png" "briar128.png" "briar192.png"
"${pkgname}.desktop"
)
sha256sums=(
"6dcc4a4b033ea503822108825c062e36b8cb72caa70b84b6552b85a92fd857fa"
"e7718648b7afbedbcbb4d9936c1d9813e8fb3dc3190476f244a2a044a6bd7965"
"965d7c617e345b809f84c8bf73d9cb0acaf763c16a4b367698218b90c1c92669"
"3feb96f9b9c01085170a44fdbf8bca43b1e586fe3b68dab37fb5cb9fd4ca1fa6"
"3ba1a6a3561f3b879d8295cf3397bda6c7710f138f6cbd7effe4f650765610a0"
"25eb65911af5e85d193e0d60418757a2ffe7b3d7d9d3debc41259bc0503972a7"
"2a3e508279c2a440372bf73da2c4acf56a9b7a0bcad886a74863f5a723413a93"
"a00d60b7aa59fb573c2e42f8bb4c23eb7038c91ea5ced47ebf9d537e3f3925cf"
"ac7f0dc86bce256dc80fbee7c65705b6dc9cdbd8f0ad942f0535f82b65ef2f83"
)
case "$CARCH" in
armv7h)
_gradle_arch='armhf'
;;
aarch64)
_gradle_arch='aarch64'
;;
*)
_gradle_arch='x64'
;;
esac
prepare() {
cd ${pkgname}
git submodule init
git config submodule.briar.url "$srcdir/briar"
# git submodule--helper update --init --recursive
# https://bugs.archlinux.org/task/76255#comment212136
git -c protocol.file.allow=always submodule update --init --recursive
}
build() {
cd "${pkgname}"
export PATH="/usr/lib/jvm/java-17-openjdk/jre/bin/:$PATH"
./gradlew -Dorg.gradle.java.home=/usr/lib/jvm/java-17-openjdk --no-daemon -PbuildType=${_build_type} pinpitPackageDefaultUberJarForLinuxX64
}
package() {
cd "${pkgname}/"
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 "${srcdir}/${pkgname}/${pkgname}/build/pinpit/jars/Briar-linux-${_gradle_arch}-${_bin_ver}-${_build_type}.jar" "$pkgdir/usr/share/java/$pkgname.jar"
install -Dm644 ${srcdir}/${pkgname}/${pkgname}/src/main/resources/images/logo_circle.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}/${pkgname}/${pkgname}/src/appResources/linux/org.briarproject.Briar.metainfo.xml \
"$pkgdir/usr/share/metainfo/org.briarproject.Briar.metainfo.xml"
}
|