blob: de10c214ad9b26402761c3d3f865ac8a2b8fd357 (
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
|
# Maintainer: David Parrish <daveparrish@tutanota.com>
pkgname=bitsquare
pkgver=0.4.9.1
pkgrel=1
pkgdesc="Cross-platform desktop application that allows users to trade national currency (dollars, euros, etc) for bitcoin without relying on centralized exchanges"
arch=('any')
url="https://bitsquare.io/"
license=('AGPL3')
depends=('java-openjfx')
makedepends=('maven')
source=("${pkgname}::git+https://github.com/bitsquare/bitsquare.git#tag=v${pkgver}"
"git+https://github.com/bitsquare/bitcoinj.git#commit=4fed6296e3c711893f9c77862e45a6ad68cafe6f"
"bitsquare.sh"
"bitsquare.desktop")
sha256sums=('SKIP'
'SKIP'
'95a61502d44523c983549d6bf3deb81dc49fef490a187d28fd16e024c2d3e2aa'
'15592a05a2a4d6cb65c757e9eec5e3818bf38e7397a3b98e7651a8a3b51f9ba9')
build() {
# Use a temporary local maven repository.
local mvn_repo="$srcdir/mvn-repository"
cd "${srcdir}/bitcoinj"
echo "Building bitcoinj ..."
mvn clean install -Dmaven.repo.local="$mvn_repo" -DskipTests -Dmaven.javadoc.skip=true
cd "${srcdir}/${pkgname}"
echo "Building bitsquare ..."
mvn clean package -Dmaven.repo.local="$mvn_repo" -DskipTests
}
package() {
# Install executable.
install -D -m755 "bitsquare.sh" "${pkgdir}/usr/bin/bitsquare"
install -D -m644 "${srcdir}/${pkgname}/gui/target/shaded.jar" "${pkgdir}/usr/share/java/bitsquare/shaded.jar"
# Install desktop launcher.
install -Dm644 bitsquare.desktop "${pkgdir}/usr/share/applications/bitsquare.desktop"
install -Dm644 "${srcdir}/${pkgname}/package/linux/icon.png" "${pkgdir}/usr/share/pixmaps/bitsquare.png"
# Install BouncyCastleProvider
# https://github.com/bitsquare/bitsquare/blob/master/doc/build.md#3-copy-the-bountycastle-provider-jar-file
local mvn_repo="$srcdir/mvn-repository"
install -Dm644 "$mvn_repo/org/bouncycastle/bcprov-jdk15on/1.53/bcprov-jdk15on-1.53.jar" \
"${pkgdir}/usr/lib/jvm/java-8-openjdk/jre/lib/ext/bcprov-jdk15on-1.53.jar"
}
|