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

New package: rm-improved-0.13.1 #22086

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions srcpkgs/rm-improved/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Template file for 'rm-improved'
pkgname=rm-improved
version=0.13.1
revision=1
build_style=cargo
short_desc="Safe and ergonomic alternative to rm"
maintainer="Juan <juan@horlux.org>"
license="GPL-3.0-only"
homepage="https://github.com/nivekuil/rip"
Copy link
Member

Choose a reason for hiding this comment

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

This makes me wonder why don't we name this package rip?

distfiles="https://crates.io/api/v1/crates/rm-improved/${version}/download>rm-improved-${version}.tar.gz"
checksum=6964bbdb1633b3af61aa3488175d111bb5cc84e56cd668255e0fb7dce4008722

if [ "$CROSS_BUILD" ]; then
export HOST_CC="$BUILD_CC"
export HOST_CFLAGS="$BUILD_CFLAGS"
export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=$XBPS_CROSS_BASE"
fi
Comment on lines +13 to +17
Copy link
Member

Choose a reason for hiding this comment

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

Any reason this is needed specifically for this package but not for others? Could make sense to add it to the build_style.


# We only want to install the binary, so don't run cargo install
do_install() {
vbin target/${RUST_TARGET}/release/rip
}