rooster: use cargo buildstyle

This commit is contained in:
Rasmus Thomsen 2018-10-02 01:09:34 +02:00 committed by Enno Boland
parent 89f4c86160
commit 9555de0c2f

View file

@ -1,8 +1,9 @@
# Template file for 'rooster' # Template file for 'rooster'
pkgname=rooster pkgname=rooster
version=2.7.1 version=2.7.1
revision=1 revision=2
hostmakedepends="cargo pkg-config python3" build_style=cargo
hostmakedepends="pkg-config python3"
makedepends="libX11-devel libXmu-devel" makedepends="libX11-devel libXmu-devel"
short_desc="Simple password manager for geeks" short_desc="Simple password manager for geeks"
maintainer="cr6git <quark6@protonmail.com>" maintainer="cr6git <quark6@protonmail.com>"
@ -11,20 +12,12 @@ homepage="https://github.com/conradkdotcom/rooster"
distfiles="https://github.com/conradkdotcom/rooster/archive/v${version}.tar.gz" distfiles="https://github.com/conradkdotcom/rooster/archive/v${version}.tar.gz"
checksum=b1413d220f240e9f9fc99e3be705c029a10f82e67df2858ee15ba09c3f5c1b51 checksum=b1413d220f240e9f9fc99e3be705c029a10f82e67df2858ee15ba09c3f5c1b51
# cargo:warning=armv7l-linux-gnueabihf-gcc: error: unrecognized command line option '-m64' case "$XBPS_TARGET_MACHINE" in
# cargo:warning=aarch64-linux-gnu-gcc: error: unrecognized command line option '-m64' aarch64*) broken="undefined reference to rust_crypto_util_fixed_time_eq_asm https://github.com/DaGenix/rust-crypto/issues/383" ;;
nocross=yes esac
post_extract() { post_extract() {
sed -i -e "s/8131853dbc8c3be5171fa96353de7a884a79d3f1d6b3fbf48f99037f5f95fe27/b7eab9b8a73dc6e0421366bca6921cd2621dab6c3909d6e3bebf863011442d15/" \ # https://github.com/voidlinux/void-packages/issues/8725#issuecomment-341365782
-e "s/3b739084e4b409aacf8531f87b57efa602eccdd17b5cddbc4ae1313a2c866f34/82745ce935695e7984a053c155a64b9ad16ece3a07d931cc90ab3fb28b7221af/" \ sed -i -e "s/82745ce935695e7984a053c155a64b9ad16ece3a07d931cc90ab3fb28b7221af/3b739084e4b409aacf8531f87b57efa602eccdd17b5cddbc4ae1313a2c866f34/" \
vendor/backtrace-sys/.cargo-checksum.json vendor/backtrace-sys/.cargo-checksum.json
} }
do_build() {
cargo build --release ${makejobs}
}
do_install() {
vbin target/release/rooster
}