File tree Expand file tree Collapse file tree 2 files changed +12
-15
lines changed Expand file tree Collapse file tree 2 files changed +12
-15
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# Maintainer: taotieren <[email protected] >22
33pkgname=crm-git
4- pkgver=0.1.8.r16.g7d4f255
4+ pkgver=0.2.0.r1.gcb4f0ce
55pkgrel=1
66pkgdesc=" crm (Cargo registry manager)"
77arch=(' any' )
@@ -13,7 +13,7 @@ replaces=()
1313depends=(' cargo' )
1414makedepends=(' git' ' rust' )
1515backup=()
16- options=(' !strip' )
16+ options=(' !strip' ' !lto ' )
1717install=
1818source=(" ${pkgname% -git} ::git+${url} .git" )
1919sha256sums=(' SKIP' )
@@ -24,24 +24,23 @@ pkgver() {
2424}
2525
2626build () {
27- # build crm
2827 cd " ${srcdir} /${pkgname% -git} /"
29- cargo build --release
28+
29+ export RUSTUP_TOOLCHAIN=stable
30+ export CARGO_TARGET_DIR=target
31+ cargo build --release --all-features
3032}
3133
3234check () {
3335 cd " ${srcdir} /${pkgname% -git} /"
34- cargo test --release
36+
37+ export RUSTUP_TOOLCHAIN=stable
38+ cargo test --all-features
3539}
3640
3741package () {
38- # install crm
39- install -Dm0755 " ${srcdir} /${pkgname% -git} /target/release/${pkgname% -git} " " ${pkgdir} /usr/share/${pkgname% -git} /${pkgname% -git} "
40-
41- install -Dm0755 /dev/stdin " ${pkgdir} /usr/bin/${pkgname% -git} " << EOF
42- #!/bin/env bash
43- cd /usr/share/${pkgname% -git} /
44- ./${pkgname% -git} "\$ @"
45- EOF
42+ cd " ${srcdir} /${pkgname% -git} /"
4643
44+ export RUSTUP_TOOLCHAIN=stable
45+ cargo install --no-track --all-features --root " $pkgdir /usr/" --path .
4746}
You can’t perform that action at this time.
0 commit comments