File tree 2 files changed +12
-15
lines changed
2 files changed +12
-15
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Maintainer: taotieren <[email protected] >
2
2
3
3
pkgname=crm-git
4
- pkgver=0.1.8.r16.g7d4f255
4
+ pkgver=0.2.0.r1.gcb4f0ce
5
5
pkgrel=1
6
6
pkgdesc=" crm (Cargo registry manager)"
7
7
arch=(' any' )
@@ -13,7 +13,7 @@ replaces=()
13
13
depends=(' cargo' )
14
14
makedepends=(' git' ' rust' )
15
15
backup=()
16
- options=(' !strip' )
16
+ options=(' !strip' ' !lto ' )
17
17
install=
18
18
source=(" ${pkgname% -git} ::git+${url} .git" )
19
19
sha256sums=(' SKIP' )
@@ -24,24 +24,23 @@ pkgver() {
24
24
}
25
25
26
26
build () {
27
- # build crm
28
27
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
30
32
}
31
33
32
34
check () {
33
35
cd " ${srcdir} /${pkgname% -git} /"
34
- cargo test --release
36
+
37
+ export RUSTUP_TOOLCHAIN=stable
38
+ cargo test --all-features
35
39
}
36
40
37
41
package () {
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} /"
46
43
44
+ export RUSTUP_TOOLCHAIN=stable
45
+ cargo install --no-track --all-features --root " $pkgdir /usr/" --path .
47
46
}
You can’t perform that action at this time.
0 commit comments