name=lvm2
version=2.03.36
release=1
desc="Logical volume management"
url="https://sourceware.org/lvm2/"
license="GPL-2.0-only LGPL-2.1-only"
depend="glibc util-linux-libs"
makedepend=""
source="https://sourceware.org/pub/lvm2/LVM2.2.03.36.tgz"
sha256="SKIP"

build() {
	cd "LVM2.2.03.36"
	[ -x ./configure ] || autoreconf -fi
	_opts="--prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib"
	_help=$(./configure --help 2>/dev/null)
	case "$_help" in *--disable-static*)  _opts="$_opts --disable-static" ;; esac
	case "$_help" in *--disable-nls*)     _opts="$_opts --disable-nls" ;; esac
	case "$_help" in *--disable-dependency-tracking*) _opts="$_opts --disable-dependency-tracking" ;; esac
	./configure $_opts
	gmake -j"$JOBS"
}

package() {
	cd "LVM2.2.03.36"
	gmake DESTDIR="$pkgdir" install
}
