summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1732d4bcc0effe7ad669c343f43224aa8b6fcc5 (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
# Maintainer: Jah Way <jahway603 at protonmail dot com>

pkgname=oxen-core-bin
_pkgname=oxen-core
pkgver=10.6.0
pkgrel=1
pkgdesc='OXEN core for cryptocurrency based on Monero (Loki)'
url='https://github.com/oxen-io/oxen-core'
arch=('x86_64')
license=('custom')
makedepends=('wget' 'git' 'curl')
conflicts=('oxen-core' 'loki-core-git')
provides=('oxen-core')
source=("$url/releases/download/v$pkgver/oxen-linux-$arch-$pkgver.tar.xz"
        "https://raw.githubusercontent.com/oxen-io/oxen-core/dev/LICENSE")
sha256sums=('e89e0ad67d59f1aa797bc43f1fa18f08344eee7778067ec2f3b67ca87480a62d'
            '11075d9b10225bbaa5d77801888ab15aa13bef9e53a3fea442eb9f2f02ae818b')

package() {
  install -Dm644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"

  # install binaries on system
  install -d "${pkgdir}/opt/${_pkgname}"
  cd ${srcdir}/oxen-linux-$arch-$pkgver
  install -m 755 oxen-blockchain-ancestry "${pkgdir}/opt/${_pkgname}"
  install -m 755 oxen-blockchain-export "${pkgdir}/opt/${_pkgname}"
  install -m 755 oxen-blockchain-mark-spent-outputs "${pkgdir}/opt/${_pkgname}"
  install -m 755 oxen-blockchain-usage "${pkgdir}/opt/${_pkgname}"
  install -m 755 oxen-gen-trusted-multisig "${pkgdir}/opt/${_pkgname}"
  install -m 755 oxen-wallet-cli "${pkgdir}/opt/${_pkgname}"
  install -m 755 oxen-blockchain-depth "${pkgdir}/opt/${_pkgname}"
  install -m 755 oxen-blockchain-import "${pkgdir}/opt/${_pkgname}"
  install -m 755 oxen-blockchain-stats "${pkgdir}/opt/${_pkgname}"
  install -m 755 oxend "${pkgdir}/opt/${_pkgname}"
  install -m 755 oxen-sn-keys "${pkgdir}/opt/${_pkgname}"
  install -m 755 oxen-wallet-rpc "${pkgdir}/opt/${_pkgname}"

  # links scripts to /usr/bin
  install -d "${pkgdir}/usr/bin"
  ln -s /opt/${_pkgname}/oxen-blockchain-ancestry "${pkgdir}/usr/bin"
  ln -s /opt/${_pkgname}/oxen-blockchain-export "${pkgdir}/usr/bin"
  ln -s /opt/${_pkgname}/oxen-blockchain-mark-spent-outputs "${pkgdir}/usr/bin"
  ln -s /opt/${_pkgname}/oxen-blockchain-usage "${pkgdir}/usr/bin"
  ln -s /opt/${_pkgname}/oxen-gen-trusted-multisig "${pkgdir}/usr/bin"
  ln -s /opt/${_pkgname}/oxen-wallet-cli "${pkgdir}/usr/bin"
  ln -s /opt/${_pkgname}/oxen-blockchain-depth "${pkgdir}/usr/bin"
  ln -s /opt/${_pkgname}/oxen-blockchain-import "${pkgdir}/usr/bin"
  ln -s /opt/${_pkgname}/oxen-blockchain-stats "${pkgdir}/usr/bin"
  ln -s /opt/${_pkgname}/oxend "${pkgdir}/usr/bin"
  ln -s /opt/${_pkgname}/oxen-sn-keys "${pkgdir}/usr/bin"
  ln -s /opt/${_pkgname}/oxen-wallet-rpc "${pkgdir}/usr/bin"
}