Pkgfile (891B)
1 # Description: Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel 2 # URL: https://github.com/pmem/ndctl 3 # Maintainer: Emmett1, emmett1 dot 2miligrams at protonmail dot com 4 # Depends on: iniparser json-c keyutils libtracefs 5 6 name=ndctl 7 version=82 8 release=1 9 source=(https://github.com/pmem/ndctl/archive/v$version/$name-$version-$release.tar.gz 10 basename.patch) 11 12 build() { 13 patch -Np1 -d $name-$version -i $SRC/basename.patch 14 15 meson setup $name-$version build $PKGMK_NDCTL \ 16 --prefix=/usr \ 17 --buildtype=plain \ 18 --wrap-mode nodownload \ 19 -D b_lto=false \ 20 -D b_pie=true \ 21 -D version-tag="$version" \ 22 -D asciidoctor=disabled \ 23 -D docs=disabled \ 24 -D systemd=disabled 25 meson compile -C build 26 DESTDIR=$PKG meson install -C build 27 28 prt-get isinst bash-completion || rm -rf $PKG/usr/share/bash-completion 29 }