blob: b8beb909fcb8bde08cd4887a84e3ea8acbd8ac47 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: envolution
# Contributor: Darren Ng <$(base64 --decode <<<'ZGFycmVuMTk5NzA4MTBAZ21haWwuY29tCg==')>
# Co-Maintainer: Simon Krogmann <$(base64 --decode <<<'cy5rcm9nbWFubkB5YWhvby5jb20K')>
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=pmdk
pkgver=2.1.0
pkgrel=1
pkgdesc="Persistent Memory Development Kit"
arch=('x86_64')
url="https://pmem.io/"
license=('BSD-3-Clause')
depends=(
'ndctl>=63'
)
optdepends=(
'libfabric>=1.4.2: required by librpmem'
'pandoc'
)
provides=(
'libpmem'
'libpmem2'
'libpmemobj'
'libpmemblk'
'libpmemlog'
'libpmempool'
'librpmem'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/pmem/pmdk/archive/$pkgver.tar.gz")
sha1sums=('8c0bffc72b816ec125035b974aa7be25dd0b3207')
build() {
cd "$pkgname-$pkgver" || exit 1
EXTRA_CFLAGS="-Wno-error" make
}
check() {
cd "$pkgname-$pkgver/src/test" || exit 1
EXTRA_CFLAGS="-Wno-error" make TEST_TYPE=short TEST_BUILD=nondebug TEST_FS=pmem UNIT_LOG_LEVEL=1
touch testconfig.sh && ./RUNTESTS.sh -k obj_sync,util_is_zeroed
}
package() {
cd "$pkgname-$pkgver" || exit 1
DESTDIR="$pkgdir" make install prefix=/usr
mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
|