File tree Expand file tree Collapse file tree 3 files changed +63
-0
lines changed Expand file tree Collapse file tree 3 files changed +63
-0
lines changed Original file line number Diff line number Diff line change 1+ *
2+ * . *
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments