You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
3.0 KiB
62 lines
3.0 KiB
# Maintainer: Jah Way <jahway603 at protonmail dot com>
|
|
|
|
pkgname=hush3-bin
|
|
_pkgname=hush3
|
|
pkgver=3.10.2
|
|
pkgrel=1
|
|
pkgdesc='HUSH (Privacy Cryptocurrency and Messenger) full node that supports z-addresses'
|
|
url='http://git.hush.is/hush/hush3'
|
|
arch=('x86_64')
|
|
license=('GPL3')
|
|
depends=('libsodium')
|
|
makedepends=('wget' 'git' 'curl')
|
|
provides=('hush3')
|
|
conflicts=('hush3')
|
|
source=("hush-$pkgver-amd64.deb::https://git.hush.is/attachments/0f5422e7-8b23-4aa7-8a2a-8f5b81961923"
|
|
"$url/raw/branch/master/LICENSE"
|
|
"hushd.service")
|
|
sha512sums=('761f55481b3674d4c1e67ccede4a96e715a424f29f11eb0c7fd6a741794435c11359128071bc9a76c2eec5efb332e6d69c72b77b11f020fef5f7c7b8fbf99328'
|
|
'7b0af5cf16f2def174a5cf63dc536e07f8a0cd3bcd48f9edccc414d406b1cb11e0a82af157ea1c43449cbabad845a1f52b084dc9232b45935880d0d82fb356ca'
|
|
'f8ab447fc4d91a86090326427fbbe8eda019fcfddf0ba1654f599903b25f4084eacc510f262ce03f176e7fd22316c55e5d8cf43dd9a4ccea375643e8fa8270c6')
|
|
|
|
package() {
|
|
# extract from deb file
|
|
tar -xf "$srcdir/data.tar.xz"
|
|
|
|
install -Dm644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
|
|
|
|
# install required binaries & scripts
|
|
install -Dm755 "${srcdir}/usr/bin/hush-smart-chain" "$pkgdir/opt/$_pkgname/hush-smart-chain"
|
|
install -Dm755 "${srcdir}/usr/bin/hush-cli" "${pkgdir}/opt/$_pkgname/hush-cli"
|
|
install -Dm755 "${srcdir}/usr/bin/hushd" "${pkgdir}/opt/$_pkgname/hushd"
|
|
install -Dm755 "${srcdir}/usr/bin/hush-tx" "${pkgdir}/opt/$_pkgname/hush-tx"
|
|
install -Dm755 "${srcdir}/usr/bin/dragonx-cli" "${pkgdir}/opt/$_pkgname/dragonx-cli"
|
|
install -Dm755 "${srcdir}/usr/bin/dragonxd" "${pkgdir}/opt/$_pkgname/dragonxd"
|
|
|
|
# install required sapling files and asmap.dat
|
|
install -Dm644 "${srcdir}/usr/share/hush/sapling-output.params" "${pkgdir}/opt/$_pkgname/sapling-output.params"
|
|
install -Dm644 "${srcdir}/usr/share/hush/sapling-spend.params" "${pkgdir}/opt/$_pkgname/sapling-spend.params"
|
|
install -Dm644 "${srcdir}/usr/share/hush/asmap.dat" "${pkgdir}/opt/$_pkgname/asmap.dat"
|
|
|
|
# install man pages
|
|
install -Dm644 "${srcdir}/usr/share/man/man1/hush-cli.1.gz" "${pkgdir}/usr/share/man/man1/hush-cli.1.gz"
|
|
install -Dm644 "${srcdir}/usr/share/man/man1/hushd.1.gz" "${pkgdir}/usr/share/man/man1/hushd.1.gz"
|
|
install -Dm644 "${srcdir}/usr/share/man/man1/hush-tx.1.gz" "${pkgdir}/usr/share/man/man1/hush-tx.1.gz"
|
|
|
|
# create symlinks
|
|
install -d "${pkgdir}/usr/bin"
|
|
ln -s /opt/${_pkgname}/hush-cli "${pkgdir}/usr/bin"
|
|
ln -s /opt/${_pkgname}/hushd "${pkgdir}/usr/bin"
|
|
ln -s /opt/${_pkgname}/hush-smart-chain "${pkgdir}/usr/bin"
|
|
ln -s /opt/${_pkgname}/hush-tx "${pkgdir}/usr/bin"
|
|
ln -s /opt/${_pkgname}/dragonx-cli "${pkgdir}/usr/bin"
|
|
ln -s /opt/${_pkgname}/dragonxd "${pkgdir}/usr/bin"
|
|
|
|
install -d "${pkgdir}/usr/share/hush"
|
|
ln -s /opt/${_pkgname}/sapling-output.params "${pkgdir}/usr/share/hush"
|
|
ln -s /opt/${_pkgname}/sapling-spend.params "${pkgdir}/usr/share/hush"
|
|
ln -s /opt/${_pkgname}/asmap.dat "${pkgdir}/usr/share/hush"
|
|
|
|
# install systemd service
|
|
install -Dm644 -t "${pkgdir}"/usr/lib/systemd/user "${srcdir}"/hushd.service
|
|
}
|
|
|