blob: 9cbf2deb96b143a023b91b4e5f8dbc99466a887f (
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
|
# Maintainer: Moses Narrow <moe_narrow@use.startmail.com>
pkgbase=discreet
pkgname=("discreet-gui" "discreet-daemon")
_pkgname0=${pkgname[0]}
_pkgname1=${pkgname[1]}
_githuborg="DiscreetNetwork"
pkgdesc="Discreet Cryptocurrency Wallet. discreet.net"
pkgver=1.0.0
_guiver="${pkgver}"
_daemonver="${pkgver}"
pkgrel=8
arch=( 'i686' 'x86_64' 'aarch64' 'armv8' 'armv7' 'armv7l' 'armv7h' 'armv6h' 'armhf' 'armel' 'arm' )
makedepends=('dotnet-sdk')
url="https://${_pkgpath}"
source=(
"git+https://github.com/DiscreetNetwork/DiscreetCore"
"git+https://github.com/DiscreetNetwork/discreet-gui"
"git+https://github.com/DiscreetNetwork/discreet"
)
sha256sums=('SKIP'
'SKIP'
'SKIP')
build() {
msg2 'building discreet core'
cd ${srcdir}/DiscreetCore/DiscreetCore/
rm ../linux/*
sed -i "12s/.*/BOOST=\/usr\/include\/boost/" Makefile | awk 'NR==12{ print; exit }' Makefile || exit 1
sed -i "13s/.*/BOOST_LIB=\/usr\/lib/" Makefile | awk 'NR==13{ print; exit }' Makefile || exit 1
make core
msg2 'building discreet daemon'
cd ${srcdir}/discreet/Discreet/
dotnet restore
dotnet publish --configuration Release --runtime linux-x64 --self-contained true --framework net6.0
msg2 'building discreet-gui'
cd ${srcdir}/discreet-gui/Discreet-GUI
dotnet restore
dotnet publish --configuration Release --runtime linux-x64 --self-contained true --framework net6.0
}
package_discreet-gui() {
depends=("discreet-daemon")
#create directory trees
cd ${pkgdir}
mkdir -p ${pkgdir}/usr/lib/discreet-gui/ ${pkgdir}/usr/bin
cp -a ${srcdir}/discreet-gui/Discreet-GUI/Discreet-GUI/bin/Release/net6.0/linux-x64/publish/* ${pkgdir}/usr/lib/discreet-gui/
ln -rTsf ${pkgdir}/usr/lib/discreet-gui/Discreet-GUI ${pkgdir}/usr/bin/discreet-gui
}
package_discreet-daemon() {
depends=( 'bzip2' 'snappy' 'lz4' 'zlib' 'zstd' 'glibc' 'lib32-glibc' 'tbb' 'liburing' 'jemalloc' 'libxcrypt' 'boost')
#create directory trees
cd ${pkgdir}
mkdir -p ${pkgdir}/usr/lib/discreet/ ${pkgdir}/usr/bin
cp -a ${srcdir}/discreet/Discreet/bin/Release/net6.0/linux-x64/publish/* ${pkgdir}/usr/lib/discreet
install -Dm644 ${srcdir}/DiscreetCore/linux/DiscreetCore.so ${pkgdir}/usr/lib/discreet
ln -rTsf ${pkgdir}/usr/lib/discreet/Discreet ${pkgdir}/usr/bin/discreetd
chmod +x ${pkgdir}/usr/bin/discreetd
ln -rTsf ${pkgdir}/usr/lib/libdl.so.2 ${pkgdir}/usr/lib/discreet/libdl.so
}
|