blob: 986045d096ead50b972c31e1d1621f50e54c765a (
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
|
# Maintainer: Serge K <arch@phnx47.net>
# For Issues, Pull Requests
# https://github.com/phnx47/pkgbuilds
pkgname="proto"
pkgdesc='A multi-language version and dependency manager'
pkgver=0.9.0
pkgrel=1
license=('MIT')
url='https://github.com/moonrepo/proto'
arch=('x86_64')
depends=('git')
makedepends=('cargo')
options=('!lto')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('e0eb6e433cbe480a3fae80aa261b421a394d87e4b5afc7847ad5480ceac84948ef87aa36d13663cd368aa3869de441108551cc0cf1a0a3f9924bea0087fad2ea')
prepare() {
cd "${pkgname}-${pkgver}"
export RUSTUP_TOOLCHAIN="stable"
cargo fetch --locked --target "${CARCH}-unknown-linux-gnu"
}
build() {
cd "${pkgname}-${pkgver}"
export RUSTUP_TOOLCHAIN="stable"
export CARGO_TARGET_DIR="target"
cargo build --release --frozen
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm 755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|