blob: 85c7de2ed097b2af58c374c8716fbf833ca7bb88 (
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
|
# Maintainer: David Parrish <daveparrish@tutanota.com>
# Co-Maintainer: Felix Golatofski <contact@xdfr.de>
pkgname=bisq2
pkgver=2.1.2
pkgrel=1
pkgdesc="The Decentralized Trading Platform"
arch=('x86_64')
url="https://bisq.network"
license=('AGPL3')
depends=('java-runtime=22')
makedepends=('java-environment=22' 'git')
source=("git+https://github.com/bisq-network/bisq2#tag=v$pkgver"
"bisq2.desktop")
sha256sums=('SKIP'
'5a7cbc21d30ebd7b9396f2dd012ccc9f79af76c5651586ec6c6bc6f2d514ac29')
_binname=Bisq2
provides=("bisq2")
build() {
cd "${srcdir}/${pkgname}"
msg2 "Building bisq2..."
./gradlew apps:desktop:desktop-app:build
}
check() {
cd "${srcdir}/${pkgname}"
msg2 "Testing bisq2..."
./gradlew test
}
package() {
# Install executable.
optdir="${pkgdir}/opt/bisq2"
install -Dm644 "${srcdir}/${pkgname}/apps/desktop/desktop-app/build/libs/desktop-app-$pkgver-linux_x86_64-all.jar" "${optdir}/lib/desktop-app-$pkgver-linux_x86_64-all.jar"
install -Dm755 "${srcdir}/${pkgname}/apps/desktop/desktop-app/build/scriptsShadow/desktop-app" "${optdir}/bin/bisq2-desktop"
install -d "${pkgdir}/usr/bin"
ln -s "/opt/bisq2/bin/bisq2-desktop" "${pkgdir}/usr/bin/bisq2-desktop"
# Install desktop launcher.
install -Dm644 bisq2.desktop "${pkgdir}/usr/share/applications/bisq2.desktop"
install -Dm644 "${srcdir}/${pkgname}/apps/desktop/desktop-app-launcher/package/linux/icon.png" "${pkgdir}/usr/share/pixmaps/bisq2.png"
}
|