summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 368a1bcdf14227ee030ddb4434661011072db565 (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
# Maintainer: tomwei7 <tomwei7g@gmail.com>
pkgname=zonefs-tools
pkgver=1.5.2
pkgrel=1
pkgdesc="This project provides the mkzonefs command line utility which allows formatting zoned block devices for use withe the zonefs file system."
arch=("x86_64")
url="https://github.com/damien-lemoal/zonefs-tools"
license=("GPL")
changelog=$pkgname.changelog
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/damien-lemoal/$pkgname/archive/refs/tags/v$pkgver.tar.gz")
md5sums=("e8521029e243f9a475bc645cfd40e234")
depends=("glibc" "util-linux-libs")

build() {
	cd "$pkgname-$pkgver"
    ./autogen.sh && ./configure --prefix=/usr
    make -j$(nproc)
}

check() {
	cd "$pkgname-$pkgver"
	make -k check
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
    mv $pkgdir/usr/sbin $pkgdir/usr/bin
}