blob: 7bc6674e8557640daf4002fea152cdb7e0c34c9d (
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.10.5
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=('e69eaf113aea3de378c8c2bc928a99d03fee305ed544d273a17ff2636c6563c2ca11625982424879e78291674249550cf81016be0539c245756c70e5d1cef317')
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"
}
|