aboutsummaryrefslogtreecommitdiffstats
path: root/main/liblockfile/APKBUILD
blob: d1329c9864b7a5dda19290389e955388ca505f8e (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
31
32
33
34
35
# Contributor: Duane Hughes <duanejevon@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=liblockfile
pkgver=1.16
pkgrel=0
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/$pkgname/archive/v$pkgver.tar.gz"

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

check() {
	cd "$builddir"
	make test
}

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

sha512sums="ee75ecf0dd25744de4e3ce7d6b12483ead2deaf0cd6a527e8493100c5d714751fe97e057873c8c7b04a935f9b46a5ea502950f15d3ce54ecc63d997ab1cee33d  liblockfile-1.16.tar.gz"