blob: aa9218613eb6840d9abe237a62eda868949b531d (
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
|
# Maintainer: Matheus Gabriel Werny de Lima <matheusgwdl@protomail.com>
_pkgname=NBXplorer
_pkgname_lc=$(echo ${_pkgname} | tr "[A-Z]" "[a-z]")
pkgname=nbxplorer-git
pkgver=latest_tag
pkgrel=1
epoch=
pkgdesc="A minimalist UTXO tracker for HD wallets."
arch=("any")
url="https://github.com/dgarage/${_pkgname}"
license=("MIT")
groups=()
depends=("aspnet-runtime-3.1" "bitcoin-daemon" "dotnet-sdk-3.1")
makedepends=("git")
checkdepends=()
optdepends=()
provides=(${_pkgname_lc})
conflicts=("nbxplorer")
replaces=()
backup=()
options=()
install=
changelog=
source=("git+${url}.git")
noextract=()
md5sums=("SKIP")
validpgpkeys=()
pkgver()
{
cd ${srcdir}/${_pkgname}/
version=$(git describe --tags --abbrev=0)
printf "%s" ${version} | sed "s/^v//;s/-/_/g;s/\//./g"
}
build()
{
cd ${srcdir}/${_pkgname}/
git checkout tags/$(git describe --tags --abbrev=0)
./build.sh
}
package()
{
# Assure that the directories exist.
mkdir -p ${pkgdir}/usr/bin/
mkdir -p ${pkgdir}/usr/share/
mkdir -p ${pkgdir}/usr/share/doc/${_pkgname}/
mkdir -p ${pkgdir}/usr/share/licenses/${_pkgname}/
# Modify run.sh to state the absolute path of the .csproj.
echo -e "#!/bin/bash
dotnet run --no-launch-profile --no-build -c Release -p \"/usr/share/${_pkgname}/NBXplorer/NBXplorer.csproj\" -- \${@}" > ${srcdir}/${_pkgname}/run.sh
# Install the software.
cp -r ${srcdir}/${_pkgname}/ ${pkgdir}/usr/share/
## Symlinking the scripts.
ln -sfrT ${pkgdir}/usr/share/${_pkgname}/run.sh ${pkgdir}/usr/bin/${_pkgname_lc}
chmod 755 ${pkgdir}/usr/bin/${_pkgname_lc}
# Install the documentation.
install -Dm644 ${srcdir}/${_pkgname}/README.md ${pkgdir}/usr/share/doc/${_pkgname}/
# Install the license.
install -Dm644 ${srcdir}/${_pkgname}/LICENSE ${pkgdir}/usr/share/licenses/${_pkgname}/
}
|