Skip to content

Commit 921e943

Browse files
committed
Delete .gitignore
1 parent edaff20 commit 921e943

File tree

3 files changed

+30
-21
lines changed

3 files changed

+30
-21
lines changed

archlinuxcn/crm-git/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

archlinuxcn/crm-git/PKGBUILD

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
# Maintainer: taotieren <admin@taotieren.com>
22

33
pkgname=crm-git
4-
pkgver=0.1.8.r16.g7d4f255
5-
pkgrel=1
4+
pkgver=0.2.2.r0.gd392e9a
5+
pkgrel=5
66
pkgdesc="crm (Cargo registry manager)"
7-
arch=('any')
7+
arch=($CARCH)
88
url="https://github.com/wtklbm/crm"
9-
license=('MIT' 'Apache-2.0')
9+
license=('MIT AND Apache-2.0')
1010
provides=(${pkgname%-git})
1111
conflicts=(${pkgname%-git})
1212
replaces=()
13-
depends=('cargo')
14-
makedepends=('git' 'rust')
13+
depends=(
14+
gcc-libs
15+
glibc
16+
)
17+
makedepends=(
18+
git
19+
cargo
20+
)
1521
backup=()
16-
options=('!strip')
22+
options=('!lto' '!debug')
1723
install=
1824
source=("${pkgname%-git}::git+${url}.git")
1925
sha256sums=('SKIP')
@@ -23,25 +29,32 @@ pkgver() {
2329
git describe --long --tags | sed 's/v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
2430
}
2531

32+
prepare() {
33+
git -C "${srcdir}/${pkgname%-git}" clean -dfx
34+
}
35+
2636
build() {
27-
# build crm
2837
cd "${srcdir}/${pkgname%-git}/"
29-
cargo build --release
38+
39+
export RUSTUP_TOOLCHAIN=stable
40+
export CARGO_TARGET_DIR=target
41+
42+
cargo build --release --all-features
3043
}
3144

3245
check() {
3346
cd "${srcdir}/${pkgname%-git}/"
34-
cargo test --release
47+
48+
export RUSTUP_TOOLCHAIN=stable
49+
cargo test --all-features
3550
}
3651

3752
package() {
38-
# install crm
39-
install -Dm0755 "${srcdir}/${pkgname%-git}/target/release/${pkgname%-git}" "${pkgdir}/usr/share/${pkgname%-git}/${pkgname%-git}"
53+
cd "${srcdir}/${pkgname%-git}/"
4054

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
55+
export RUSTUP_TOOLCHAIN=stable
4656

57+
cargo install --no-track --all-features --root "$pkgdir/usr/" --path .
58+
install -Dm0644 "LICENSE-MIT" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
59+
install -Dm0644 "LICENSE-Apache-2.0" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
4760
}

archlinuxcn/crm-git/lilac.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
maintainers:
22
- github: taotieren
33

4-
build_prefix: extra-x86_64
5-
64
pre_build: vcs_update
75

86
post_build_script: |

0 commit comments

Comments
 (0)