summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f78d9aaaaa76bfaf62b825c6779899598039cfa6 (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
# Maintainer: Microoo <hu _AT_ m i c r o o o _DOT_ net>
pkgname=substratumnode-cli-git
pkgver=0.4.6.r0.g811054ed
pkgrel=1
pkgdesc="Command line binary of SubstratumNode. SubstratumNode is the foundation of the decentralized SubstratumNetwork. SubstratumNodes work together to relay CORES packages and content on the network."
arch=('x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/SubstratumNetwork/SubstratumNode"
license=('GPLv3')
depends=('rust' 'openssl')
conflicts=('substratumnode-cli')
provides=('substratumnode-cli')
options=('!strip' '!emptydirs')
source=("${pkgname}::git://github.com/SubstratumNetwork/SubstratumNode")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$srcdir/${pkgname}"
    
    # remove sign & node_ui
    sed -i '/# sign/,$d' ci/release.sh
    
    # build
    ci/release.sh
}

package(){
    install -Dm755 "$srcdir/${pkgname}/node/target/release/SubstratumNode" "$pkgdir/usr/bin/SubstratumNode"
    install -Dm755 "$srcdir/${pkgname}/dns_utility/target/release/dns_utility" "$pkgdir/usr/bin/dns_utility"
}