Skip to content

Commit

Permalink
Delete .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
taotieren committed Apr 2, 2023
1 parent edaff20 commit cd53e77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
2 changes: 0 additions & 2 deletions archlinuxcn/crm-git/.gitignore

This file was deleted.

25 changes: 12 additions & 13 deletions archlinuxcn/crm-git/PKGBUILD
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')
Expand All @@ -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')
Expand All @@ -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 .
}

0 comments on commit cd53e77

Please sign in to comment.