diff options
author | Matheus | 2022-11-09 15:37:58 +0100 |
---|---|---|
committer | Matheus | 2022-11-09 15:37:58 +0100 |
commit | 80a3638f9018e86a8087866357a7c3516bc10eaf (patch) | |
tree | 81468f7c43bfb23fc2761c3b73daebf8fb8913f2 | |
parent | 5b76951bc964248be8e841d3a1ee85ec188b1407 (diff) | |
download | aur-80a3638f9018e86a8087866357a7c3516bc10eaf.tar.gz |
Update.
-rwxr-xr-x | .SRCINFO | 2 | ||||
-rwxr-xr-x | PKGBUILD | 22 |
2 files changed, 12 insertions, 12 deletions
@@ -1,5 +1,5 @@ pkgbase = haveno - pkgdesc = Decentralized P2P exchange built on Monero and Tor. + pkgdesc = Decentralised P2P exchange built on Monero and Tor. pkgver = 0.0.3 pkgrel = 1 url = https://github.com/haveno-dex/haveno @@ -1,12 +1,14 @@ #!/usr/bin/env bash # shellcheck disable=SC2034 # shellcheck disable=SC2154 -# Maintainer: Matheus Gabriel Werny de Lima <matheusgwdl@protonmail.com> +# The PKGBUILD for Haveno. +# Maintainer: Matheus <matheusgwdl@protonmail.com> +# Contributor: Matheus <matheusgwdl@protonmail.com> pkgname="haveno" pkgver="0.0.3" pkgrel="1" -pkgdesc="Decentralized P2P exchange built on Monero and Tor." +pkgdesc="Decentralised P2P exchange built on Monero and Tor." arch=("any") url="https://github.com/haveno-dex/${pkgname}" license=("AGPL3") @@ -23,21 +25,19 @@ build() package() { # Assure that the directories exist. - mkdir -p "${pkgdir}"/opt/"${pkgname}"/ mkdir -p "${pkgdir}"/usr/bin/ mkdir -p "${pkgdir}"/usr/share/doc/"${pkgname}"/ + mkdir -p "${pkgdir}"/usr/share/java/"${pkgname}"/ # Install the software. - binaries=("haveno-apitest" "haveno-cli" "haveno-daemon" "haveno-desktop" "haveno-inventory" "haveno-monitor" "haveno-pricenode" "haveno-relay" "haveno-seednode" "haveno-statsnode") + cp -r "${srcdir}"/"${pkgname}"-"${pkgver}"/lib/ "${pkgdir}"/usr/share/java/"${pkgname}"/ - for binary in "${binaries[@]}"; do - install -Dm755 "${srcdir}"/"${pkgname}"-"${pkgver}"/"${binary}" "${pkgdir}"/opt/"${pkgname}"/ - ln -s /opt/"${pkgname}"/"${binary}" "${pkgdir}"/usr/bin/ - done + _binaries=("haveno-apitest" "haveno-cli" "haveno-daemon" "haveno-desktop" "haveno-inventory" "haveno-monitor" "haveno-pricenode" "haveno-relay" "haveno-seednode" "haveno-statsnode") - cp -r "${srcdir}"/"${pkgname}"-"${pkgver}"/lib/ "${pkgdir}"/opt/"${pkgname}"/ - find "${pkgdir}"/opt/"${pkgname}"/lib/ -type d -exec chmod 755 {} + - find "${pkgdir}"/opt/"${pkgname}"/lib/ -type f -exec chmod 644 {} + + for _binary in "${_binaries[@]}"; do + install -Dm755 "${srcdir}"/"${pkgname}"-"${pkgver}"/"${_binary}" "${pkgdir}"/usr/share/java/"${pkgname}"/ + ln -s /usr/share/java/"${pkgname}"/"${_binary}" "${pkgdir}"/usr/bin/ + done # Install the documentation. cp -r "${srcdir}"/"${pkgname}"-"${pkgver}"/docs/* "${pkgdir}"/usr/share/doc/"${pkgname}"/ |