diff gnu/coreutils/coreutils.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/gnu/coreutils/coreutils.sh	Wed Jul 28 15:24:46 2021 +0200
+++ b/gnu/coreutils/coreutils.sh	Wed Sep 29 13:49:32 2021 +0200
@@ -53,30 +53,27 @@
 	with_ssl="--with-openssl"
 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
 
-	# kill is provided by util-linux and shells
-	# uptime is provided by procps-ng
-	CC="$CC" \
-	CFLAGS="$CFLAGS" \
-	LDFLAGS="$LDFLAGS" \
-	LIBS="$LIBS" \
-	FORCE_UNSAFE_CONFIGURE=1 \
-	./configure \
-		--build=$CBUILD \
-		--host=$CHOST \
-		--prefix= \
-		--enable-no-install-programs=kill,uptime \
-		$with_gmp \
-		$with_nls \
-		$with_ssl
-	make
-	make install DESTDIR=$DESTDIR
+# kill is provided by util-linux and shells
+# uptime is provided by procps-ng
+CC="$CC" \
+CFLAGS="$CFLAGS" \
+LDFLAGS="$LDFLAGS" \
+LIBS="$LIBS" \
+FORCE_UNSAFE_CONFIGURE=1 \
+./configure \
+	--build=$CBUILD \
+	--host=$CHOST \
+	--prefix= \
+	--enable-no-install-programs=kill,uptime \
+	$with_gmp \
+	$with_nls \
+	$with_ssl
+make
+make install DESTDIR=$DESTDIR
 
-	cd ..
-	rm -rf $PKGNAME-$PKGVERSION
-}
+cd ..
+rm -rf $PKGNAME-$PKGVERSION