Date: Saturday, April 9, 2022 @ 20:38:11
  Author: foxboron
Revision: 1183161

upgpkg: nvme-cli 2.0-1: upgpkg: nvme-cli 2.0-1

Modified:
  nvme-cli/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-04-09 20:29:59 UTC (rev 1183160)
+++ PKGBUILD    2022-04-09 20:38:11 UTC (rev 1183161)
@@ -5,23 +5,31 @@
 # Contributor: Martin Schrodt <[email protected]>
 
 pkgname=nvme-cli
-pkgver=1.16
-pkgrel=2
+pkgver=2.0
+pkgrel=1
 pkgdesc="NVM-Express user space tooling for Linux"
 arch=('i686' 'x86_64')
 url="https://github.com/linux-nvme/nvme-cli";
 license=('GPL')
-makedepends=('systemd')
+makedepends=('systemd' 'meson' 'git')
 depends=('util-linux' 'libsystemd')
 options=(debug strip)
 install=nvme-cli.install
 # checkdepends=('python2-nose' 'python-nose')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/${pkgname}/archive/v${pkgver}.tar.gz";)
-sha256sums=('40f741020ab5c490374901cd2c0c9b6cf98dd5ff5f182517a0aec12c0e9aef55')
+sha256sums=('471869b3bf643bb357dc9613ad14d24ff342fcd97e2db5a753c81c335ad8859c')
 
 build() {
        cd "${pkgname}-${pkgver}"
-       make PREFIX=/usr
+       meson setup \
+       --prefix /usr \
+       --libexecdir lib \
+       --sbindir bin \
+       --buildtype plain \
+       --auto-features enabled \
+       -D b_lto=true -D b_pie=true \
+       -D docs=man -D docs-build=true \
+       .build
 }
 
 # Tests require a working NVME disk.
@@ -32,9 +40,5 @@
 
 package() {
        cd "${pkgname}-${pkgver}"
-       make DESTDIR="$pkgdir" UDEVDIR=/usr/lib/udev PREFIX=/usr 
SBINDIR=/usr/bin install-spec
-
-       # This is done because we don't want the hostnqn and hostid files 
tracked.
-       # they are supposed to be unique
-       rm $pkgdir/etc/nvme/host{nqn,id}
+       DESTDIR="$pkgdir" meson install -C .build
 }

Reply via email to