-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Maintainer: taotieren <[email protected]> | ||
|
||
pkgname=crm-git | ||
pkgver=0.1.8.r16.g7d4f255 | ||
pkgver=0.2.0.r1.gcb4f0ce | ||
pkgrel=1 | ||
pkgdesc="crm (Cargo registry manager)" | ||
arch=('any') | ||
|
@@ -13,7 +13,7 @@ replaces=() | |
depends=('cargo') | ||
makedepends=('git' 'rust') | ||
backup=() | ||
options=('!strip') | ||
options=('!strip' '!lto') | ||
install= | ||
source=("${pkgname%-git}::git+${url}.git") | ||
sha256sums=('SKIP') | ||
|
@@ -24,24 +24,23 @@ pkgver() { | |
} | ||
|
||
build() { | ||
# build crm | ||
cd "${srcdir}/${pkgname%-git}/" | ||
cargo build --release | ||
|
||
export RUSTUP_TOOLCHAIN=stable | ||
export CARGO_TARGET_DIR=target | ||
cargo build --release --all-features | ||
} | ||
|
||
check() { | ||
cd "${srcdir}/${pkgname%-git}/" | ||
cargo test --release | ||
|
||
export RUSTUP_TOOLCHAIN=stable | ||
cargo test --all-features | ||
} | ||
|
||
package() { | ||
# install crm | ||
install -Dm0755 "${srcdir}/${pkgname%-git}/target/release/${pkgname%-git}" "${pkgdir}/usr/share/${pkgname%-git}/${pkgname%-git}" | ||
|
||
install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/${pkgname%-git}" << EOF | ||
#!/bin/env bash | ||
cd /usr/share/${pkgname%-git}/ | ||
./${pkgname%-git} "\$@" | ||
EOF | ||
cd "${srcdir}/${pkgname%-git}/" | ||
|
||
export RUSTUP_TOOLCHAIN=stable | ||
cargo install --no-track --all-features --root "$pkgdir/usr/" --path . | ||
} |