aports/testing/delta/APKBUILD
2021-07-13 15:21:19 +00:00

26 lines
751 B
Plaintext

# Contributor: Aleks Bunin <alpinelinux@compuix.com>
# Maintainer: Aleks Bunin <alpinelinux@compuix.com>
pkgname=delta
pkgver=0.8.3
pkgrel=0
pkgdesc="A viewer for git and diff output"
url="https://github.com/dandavison/delta"
arch="all !s390x !mips !mips64 !riscv64" # Limited by cargo
license="MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/dandavison/delta/archive/$pkgver.tar.gz"
build() {
cargo build --release --locked
}
check() {
cargo test --release --locked
}
package() {
install -Dm755 target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname"
}
sha512sums="8cda4255c878be8dc4dc841dc1778f992c7b01c7a56965babfff9cd0dd085b751e79ffb87450d50d78fd094f2ab851f468c0e88ca4e2f0becf6ebbc122ce602d delta-0.8.3.tar.gz"