diff core/util-linux/util-linux.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 297b5eef115e
children 57dc83a39b13
line wrap: on
line diff
--- a/core/util-linux/util-linux.sh	Wed Jul 28 15:24:46 2021 +0200
+++ b/core/util-linux/util-linux.sh	Wed Sep 29 13:49:32 2021 +0200
@@ -103,56 +103,53 @@
 	with_selinux="--without-selinux"
 fi
 
-build()
-{
-	rm -rf $PKGNAME-$PKGVERSION
-	tar xvf $PKGNAME-$PKGVERSION.tar.xz
-	cd $PKGNAME-$PKGVERSION
+rm -rf $PKGNAME-$PKGVERSION
+tar xvf $PKGNAME-$PKGVERSION.tar.xz
+cd $PKGNAME-$PKGVERSION
 
-	# All these tools are provided by shadow instead:
-	# --disable-chfn-chsh
-	# --disable-chsh
-	# --disable-login
-	# --disable-nologin
-	# --disable-su
-	# --disable-vipw
+# All these tools are provided by shadow instead:
+# --disable-chfn-chsh
+# --disable-chsh
+# --disable-login
+# --disable-nologin
+# --disable-su
+# --disable-vipw
 
-	# The configure.ac script has hardcoded /sbin checks.
-	sed -i -e 's|/sbin|/bin|' configure.ac
-	autoreconf -vif
-	CC="$CC" \
-	CFLAGS="$CFLAGS" \
-	LDFLAGS="$LDFLAGS" \
-	LIBS="$LIBS" \
-	./configure \
-		--build=$CBUILD \
-		--host=$CHOST \
-		--prefix= \
-		--bindir=/bin \
-		--libdir=/lib \
-		--sbindir=/bin \
-		--disable-chfn-chsh \
-		--disable-gtk-doc \
-		--disable-login \
-		--disable-nologin \
-		--disable-su \
-		--disable-vipw \
-		--enable-libblkid \
-		--enable-libmount \
-		--enable-libsmartcols \
-		--enable-libuuid \
-		--enable-shared \
-		--without-systemd \
-		$with_audit \
-		$with_colors \
-		$with_components \
-		$with_nls \
-		$with_python \
-		$with_selinux
-	make
-	make install DESTDIR=$DESTDIR
-	find $DESTDIR -type f -name "*.la" -delete
+# The configure.ac script has hardcoded /sbin checks.
+sed -i -e 's|/sbin|/bin|' configure.ac
+autoreconf -vif
+CC="$CC" \
+CFLAGS="$CFLAGS" \
+LDFLAGS="$LDFLAGS" \
+LIBS="$LIBS" \
+./configure \
+	--build=$CBUILD \
+	--host=$CHOST \
+	--prefix= \
+	--bindir=/bin \
+	--libdir=/lib \
+	--sbindir=/bin \
+	--disable-chfn-chsh \
+	--disable-gtk-doc \
+	--disable-login \
+	--disable-nologin \
+	--disable-su \
+	--disable-vipw \
+	--enable-libblkid \
+	--enable-libmount \
+	--enable-libsmartcols \
+	--enable-libuuid \
+	--enable-shared \
+	--without-systemd \
+	$with_audit \
+	$with_colors \
+	$with_components \
+	$with_nls \
+	$with_python \
+	$with_selinux
+make
+make install DESTDIR=$DESTDIR
+find $DESTDIR -type f -name "*.la" -delete
 
-	cd ..
-	rm -rf $PKGNAME-$PKGVERSION
-}
+cd ..
+rm -rf $PKGNAME-$PKGVERSION