summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c4522177ac018f1fa567917564287ec7a1dbaef6 (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
# Maintainer: tomwei7 <tomwei7g@gmail.com>
pkgname=libzbc
pkgver=5.9.0
pkgrel=1
pkgdesc="simple library providing functions for manipulating SCSI and ATA devices supporting the Zoned Block Command (ZBC) and Zoned-device ATA command set (ZAC) specifications."
arch=("x86_64")
url="https://github.com/westerndigitalcorporation/libzbc"
license=("GPL3")
changelog=$pkgname.changelog
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/westerndigitalcorporation/$pkgname/archive/refs/tags/v$pkgver.tar.gz")
md5sums=("ce22f170e9fd414685d3293114207e62")
depends=("glibc")
optdepends=("gtk3")
makedepends=("autoconf-archive")

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

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

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install
}