Skip to content

Commit edaff20

Browse files
committed
Add crm-git
1 parent b012fc1 commit edaff20

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

Diff for: archlinuxcn/crm-git/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
*.*

Diff for: archlinuxcn/crm-git/PKGBUILD

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Maintainer: taotieren <[email protected]>
2+
3+
pkgname=crm-git
4+
pkgver=0.1.8.r16.g7d4f255
5+
pkgrel=1
6+
pkgdesc="crm (Cargo registry manager)"
7+
arch=('any')
8+
url="https://github.com/wtklbm/crm"
9+
license=('MIT' 'Apache-2.0')
10+
provides=(${pkgname%-git})
11+
conflicts=(${pkgname%-git})
12+
replaces=()
13+
depends=('cargo')
14+
makedepends=('git' 'rust')
15+
backup=()
16+
options=('!strip')
17+
install=
18+
source=("${pkgname%-git}::git+${url}.git")
19+
sha256sums=('SKIP')
20+
21+
pkgver() {
22+
cd "${srcdir}/${pkgname%-git}/"
23+
git describe --long --tags | sed 's/v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
24+
}
25+
26+
build() {
27+
# build crm
28+
cd "${srcdir}/${pkgname%-git}/"
29+
cargo build --release
30+
}
31+
32+
check() {
33+
cd "${srcdir}/${pkgname%-git}/"
34+
cargo test --release
35+
}
36+
37+
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
46+
47+
}

Diff for: archlinuxcn/crm-git/lilac.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
maintainers:
2+
- github: taotieren
3+
4+
build_prefix: extra-x86_64
5+
6+
pre_build: vcs_update
7+
8+
post_build_script: |
9+
git_pkgbuild_commit()
10+
update_aur_repo()
11+
12+
update_on:
13+
- source: github
14+
github: wtklbm/crm

0 commit comments

Comments
 (0)