# Contributor: Duane Hughes <duanejevon@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=liblockfile
pkgver=1.17
pkgrel=4
pkgdesc="Shared library with NFS-safe locking functions"
url="https://github.com/miquels/liblockfile"
arch="all"
license="LGPL-2.0-or-later AND GPL-2.0-or-later"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/miquels/liblockfile/archive/v$pkgver.tar.gz"

build() {
	LDCONFIG=/bin/true \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-shared
	make -j1
}

check() {
	make test
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="2169ac2219950d6ec7def6b5cc712cc04d1a185dc9c09b364c8d47b7b3d15c3482a2200b591872da87eb784717b2ba3537fbc39d7075c329cc8ba48039473a83  liblockfile-1.17.tar.gz"
