makedeb
Solana CLI tools
Viewing /PKGBUILD
.
Click here to go back to the Git tree for solana-bin.
# Maintainer: hiddeninthesand <hiddeninthesand at protonmail dot com>
pkgname='solana-bin'
_gitname='solana'
provides=('solana')
pkgver='1.10.40'
pkgrel='1'
pkgdesc="Solana CLI tools"
arch=("x86_64")
url="https://solana.com"
license=("Apache")
depends=('openssl')
source=("solana.tar.bz2"::"https://github.com/solana-labs/solana/releases/download/v${pkgver}/solana-release-x86_64-unknown-linux-gnu.tar.bz2")
b2sums=('af94fc4083ea0806d8a4f3086c43b3efdcdbc369605df182c414746d5990046514e119a7e1ff0d530fd28fe0b9e727866e4713a070a2fff14fbcc5c25b0a6f24')
package() {
install -d "${pkgdir}/opt/solana"
cp -ar "${srcdir}/solana-release/bin/." "${pkgdir}/opt/solana/"
mkdir --parents "${pkgdir}/usr/bin"
ln -s "/opt/solana/solana" "${pkgdir}/usr/bin/solana"
ln -s "/opt/solana/solana-keygen" "${pkgdir}/usr/bin/solana-keygen"
}