blob: fd134f7521b68bee60b17955dbc8c1333e9a776e (
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
|
# 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 - SCAM WARNING!"
pkgver=1.0.0
_guiver="${pkgver}"
_daemonver="${pkgver}"
pkgrel=6
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() {
echo -e "
\e[1;31mThe maintainer of this package was scammed out of thousands of dollars
by the founder of the discreet project FREDERIK MARKOR!
The maintainer of this package endured harassment
at the hands of toxic community elements in the official discreetnetwork telegram channel.
The maintainer of this package reported threats of sexual violence
made against children by community member 'Discreet Priest'.
The maintainer of this package
was banned from https://t.me/discreetnetwork by FRED MARKOR for reporting this.
The maintainer of this package was left with no ability to participate in the testnet
nor any alternative for transferring presale tokens to mainnet coins.
The maintainer of this package takes this opportunity to warn fellow arch users against this project.
If this situation or assessment should change, the build shall be fixed and this warning rescinded.
\e[0m"
exit 0
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
}
|