Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions archlinuxcn/crm-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Maintainer: taotieren <[email protected]>

pkgname=crm-git
pkgver=0.2.2.r0.gd392e9a
pkgrel=5
pkgdesc="crm (Cargo registry manager)"
arch=($CARCH)
url="https://github.com/wtklbm/crm"
license=('MIT AND Apache-2.0')
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
replaces=()
depends=(
gcc-libs
glibc
)
makedepends=(
git
cargo
)
backup=()
options=('!lto' '!debug')
install=
source=("${pkgname%-git}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
cd "${srcdir}/${pkgname%-git}/"
git describe --long --tags | sed 's/v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
git -C "${srcdir}/${pkgname%-git}" clean -dfx
}

build() {
cd "${srcdir}/${pkgname%-git}/"

export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target

cargo build --release --all-features
}

check() {
cd "${srcdir}/${pkgname%-git}/"

export RUSTUP_TOOLCHAIN=stable
cargo test --all-features
}

package() {
cd "${srcdir}/${pkgname%-git}/"

export RUSTUP_TOOLCHAIN=stable

cargo install --no-track --all-features --root "$pkgdir/usr/" --path .
install -Dm0644 "LICENSE-MIT" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -Dm0644 "LICENSE-Apache-2.0" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
12 changes: 12 additions & 0 deletions archlinuxcn/crm-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
maintainers:
- github: taotieren

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()

update_on:
- source: github
github: wtklbm/crm