aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ndctl/APKBUILD
blob: 54b4715154b0df13539626b66dd139cd9448ea1f (plain) (blame)
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
36
37
38
39
40
41
42
# Maintainer: Breno Leitao <breno.leitao@gmail.com>
pkgname=ndctl
pkgver=56
pkgrel=0
pkgdesc="Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel"
url="https://github.com/pmem/ndctl"
arch="all"
license="GPL"
depends="libuuid json-c kmod"
makedepends="autoconf automake libtool asciidoc xmlto kmod-dev eudev-dev util-linux-dev json-c-dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pmem/ndctl/archive/v$pkgver.tar.gz
0001-util-Enable-ndctl-to-compile-on-non-glibc-envs.patch"

builddir="$srcdir"/ndctl-$pkgver

build() {
	cd "$builddir"

	./autogen.sh || return 1

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="bfd5a6f78e1d3589ba1372b176dc07bf  ndctl-56.tar.gz
67c332d6666a1a3434fef0ff52d7151e  0001-util-Enable-ndctl-to-compile-on-non-glibc-envs.patch"
sha256sums="76efc9b185ee9b3d9ef4dc6079899e039328595b6b2c88a040cc26308d4872ce  ndctl-56.tar.gz
2e89bccc5ac72a0e25f7447aa4efe306184df61a1a9f7fe013539141c4c981f2  0001-util-Enable-ndctl-to-compile-on-non-glibc-envs.patch"
sha512sums="1892bef09b013d5e4a82f0606e196bbba7b9a34fc3ef09a5e0241cc0ba813338148a23cc6e5fe7e951b819d528be9bdbc125753f85de2e864f0683394ce3ee3a  ndctl-56.tar.gz
ff57687b0998b7f6b773a6f63a8cb034191c45b3f95b62be8709ee6b9b78f9289e102c4e1fa05118baf2aefb671b0967af0b54addcc26adfa271937a36dbc13a  0001-util-Enable-ndctl-to-compile-on-non-glibc-envs.patch"