Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add crm-git #2986

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
46 changes: 46 additions & 0 deletions archlinuxcn/crm-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Maintainer: taotieren <[email protected]>

pkgname=crm-git
pkgver=0.2.0.r1.gcb4f0ce
pkgrel=1
pkgdesc="crm (Cargo registry manager)"
arch=('any')
url="https://github.com/wtklbm/crm"
license=('MIT' 'Apache-2.0')
Comment on lines +8 to +9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crm-git E: Uncommon license identifiers such as 'MIT' require license files below /usr/share/licenses/crm-git/ or switching to common license identifiers. Found 0/1 required license files.

provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
replaces=()
depends=('cargo')
makedepends=('git' 'rust')
Comment on lines +13 to +14
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crm-git W: Dependency gcc-libs detected and implicitly satisfied (libraries ['usr/lib/libgcc_s.so.1'] needed in files ['usr/bin/crm'])
crm-git W: Dependency glibc detected and implicitly satisfied (libraries ['usr/lib/ld-linux-x86-64.so.2', 'usr/lib/libc.so.6'] needed in files ['usr/bin/crm'])
crm-git W: Dependency included, but may not be needed ('cargo')

backup=()
options=('!strip' '!lto')
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'
}

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 .
}
Comment on lines +41 to +46
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crm-git E: ELF file ('usr/bin/crm') found in an 'any' package.
crm-git W: ELF file ('usr/bin/crm') is unstripped.
crm-git W: ELF file ('usr/bin/crm') lacks GNU_PROPERTY_X86_FEATURE_1_SHSTK.
Installing /build/crm-git/pkg/crm-git/usr/bin/crm
Installed package `crm v0.2.1 (/build/crm-git/src/crm)` (executable `crm`)
warning: be sure to add `/build/crm-git/pkg/crm-git/usr/bin` to your PATH to be able to run the installed binaries

14 changes: 14 additions & 0 deletions archlinuxcn/crm-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
maintainers:
- github: taotieren

build_prefix: extra-x86_64

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()

update_on:
- source: github
github: wtklbm/crm