From fed1c36db56ef64f3b003d745cd65563fd5bd05e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pola=C5=84ski?= Date: Fri, 28 Feb 2020 01:43:24 +0100 Subject: [PATCH] testing/ytop: new aport --- testing/ytop/APKBUILD | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 testing/ytop/APKBUILD diff --git a/testing/ytop/APKBUILD b/testing/ytop/APKBUILD new file mode 100644 index 00000000000..1271a998974 --- /dev/null +++ b/testing/ytop/APKBUILD @@ -0,0 +1,22 @@ +# Contributor: Michał Polański +# Maintainer: Michał Polański +pkgname=ytop +pkgver=0.5.1 +pkgrel=0 +pkgdesc="A TUI system monitor written in Rust" +url="https://github.com/cjbassi/ytop" +arch="all !s390x" # limited by cargo +license="MIT" +options="!check" # no test suite +makedepends="cargo" +source="$pkgname-$pkgver.tar.gz::https://github.com/cjbassi/ytop/archive/$pkgver.tar.gz" + +build() { + cargo build --release --locked --all-features +} + +package() { + install -Dm755 target/release/ytop "$pkgdir"/usr/bin/ytop +} + +sha512sums="e3959df8c3972011f3be0a6ca939868b566036cc11064371be250bd7dc97fe067d5699029b0c59195d50c1c228b0f3f83c0c8f4ade8420926a0e57686b10f24a ytop-0.5.1.tar.gz"