void-packages/srcpkgs/difftastic/template

25 lines
724 B
Bash

# Template file for 'difftastic'
pkgname=difftastic
version=0.46.0
revision=1
build_style=cargo
short_desc="Structural diff tool that understands syntax"
maintainer="icp <pangolin@vivaldi.net>"
license="MIT"
homepage="https://difftastic.wilfred.me.uk"
changelog="https://raw.githubusercontent.com/Wilfred/difftastic/master/CHANGELOG.md"
distfiles="https://static.crates.io/crates/difftastic/difftastic-${version}.crate"
checksum=1e443445ea9d68d1538b6ad00d9eadfe5c382392b32c78034714ef7f6a3463ce
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
XBPS_CROSS_RUSTFLAGS+=" -latomic"
if [ -z "$CROSS_BUILD" ]; then
broken="how is this supposed to even work"
fi
fi
post_install() {
vlicense LICENSE
}