archrelease: copy trunk to extra-x86_64
[arch-packages.git] / arch-rebuild-order / repos / extra-x86_64 / PKGBUILD
blobdddb1cc2728c660c983f435ec2a303f360912fcd
1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
3 pkgname=arch-rebuild-order
4 pkgver=0.2.1
5 pkgrel=1
6 pkgdesc='CLI tool to determine the rebuild order of provided package(s)'
7 url='https://gitlab.archlinux.org/archlinux/arch-rebuild-order'
8 arch=('x86_64')
9 license=('MIT')
10 depends=('glibc' 'libalpm.so')
11 makedepends=('cargo' 'mandown' 'git')
12 groups=('archlinux-tools')
13 source=(git+https://gitlab.archlinux.org/archlinux/arch-rebuild-order.git#tag=v$pkgver?signed)
14 sha512sums=('SKIP')
15 validpgpkeys=("E499C79F53C96A54E572FEE1C06086337C50773E")
17 prepare() {
18   cd ${pkgname}
19   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
22 build() {
23   cd ${pkgname}
24   cargo build --frozen --release --all-features
27 check() {
28   cd ${pkgname}
29   cargo test --frozen --all-features
32 package() {
33   cd ${pkgname}
34   make install DESTDIR="$pkgdir" PREFIX=/usr
36   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"