diff gnu/parted/parted.sh @ 1094:3dece1f7570b

vanilla: add many ghost dependencies
author David Demelier <markand@malikania.fr>
date Mon, 09 Sep 2019 21:10:00 +0200
parents da9d739541b6
children 297b5eef115e
line wrap: on
line diff
--- a/gnu/parted/parted.sh	Mon Sep 09 21:05:00 2019 +0200
+++ b/gnu/parted/parted.sh	Mon Sep 09 21:10:00 2019 +0200
@@ -21,8 +21,8 @@
 PKGLICENSE="GPLv30"
 PKGSUMMARY="GNU program for manipulating partition tables"
 PKGDOWNLOAD="https://ftp.gnu.org/gnu/$PKGNAME/$PKGNAME-$PKGVERSION.tar.xz"
-PKGDEPENDS="lvm2 util-linux"
-PKGOPTIONS="NLS"
+PKGDEPENDS="lvm2 ncurses util-linux"
+PKGOPTIONS="COMPLETION NLS"
 
 : ${CHOST:=$(uname -m)-linux-musl}
 : ${CBUILD:=$(uname -m)-linux-musl}
@@ -30,8 +30,16 @@
 : ${CFLAGS:=-O2}
 : ${LDFLAGS:=}
 : ${LIBS:=}
+: ${COMPLETION:=yes}
 : ${NLS:=yes}
 
+if [ "$COMPLETION" = "yes" ]; then
+	PKGDEPENDS="readline $PKGDEPENDS"
+	with_completion="--with-readline"
+else
+	with_completion="--without-readline"
+fi
+
 if [ "$NLS" = "yes" ]; then
 	PKGDEPENDS="gettext $PKGDEPENDS"
 	with_nls="--enable-nls"
@@ -55,6 +63,7 @@
 		--host=$CHOST \
 		--prefix= \
 		--sbindir=/bin \
+		$with_completion \
 		$with_nls
 	make
 	make install DESTDIR=$DESTDIR