aboutsummaryrefslogtreecommitdiffstats
path: root/testing/topgrade/APKBUILD
blob: 3a99eb2428916d49bc49639a33d0113d40444901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Sean McAvoy <seanmcavoy@gmail.com>
# Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
pkgname=topgrade
pkgver=7.1.0
pkgrel=0
pkgdesc="run upgrades of packages in OS and other package managers"
url="https://github.com/r-darwish/topgrade"
arch="all !s390x !mips !mips64 !riscv64"
license="GPL-3.0-or-later"
makedepends="rust cargo"
subpackages="$pkgname-doc"
source="topgrade-$pkgver.tar.gz::https://github.com/r-darwish/topgrade/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cargo build --release
}

check() {
	cargo test
}

package() {
	install -Dm755 target/release/topgrade $pkgver/usr/bin/topgrade
	install -Dm644 topgrade.8 $pkgdir/usr/share/man/man8/topgrade.8
	install -Dm644 LICENSE $pkgdir/usr/share/license/topgrade/LICENSE
}

sha512sums="
984d5f95e1d51f2fe04d3e767b44781e7850ef93f8d16fc31f0ec7c88eee5a2355578327fee9641016c168acb7dfedf1b8d81d1b82049faa9d492f42941f34e9  topgrade-7.1.0.tar.gz
"