diff print/cups/cups.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/print/cups/cups.sh	Wed Jul 28 15:24:46 2021 +0200
+++ b/print/cups/cups.sh	Wed Sep 29 13:49:32 2021 +0200
@@ -62,43 +62,40 @@
 	with_pam="--disable-pam"
 fi
 
-build()
-{
-	rm -rf $PKGNAME-$PKGVERSION
-	tar xvf $PKGNAME-$PKGVERSION-source.tar.gz
-	cd $PKGNAME-$PKGVERSION
+rm -rf $PKGNAME-$PKGVERSION
+tar xvf $PKGNAME-$PKGVERSION-source.tar.gz
+cd $PKGNAME-$PKGVERSION
 
-	# --without-rcdir: do not install custom init scripts.
-	CC="$CC" \
-	CFLAGS="$CFLAGS" \
-	CXX="$CXX" \
-	CXXFLAGS="$CXXFLAGS" \
-	LDFLAGS="$LDFLAGS" \
-	LIBS="$LIBS" \
-	./configure \
-		--build=$CBUILD \
-		--host=$CHOST \
-		--prefix= \
-		--sbindir=/bin \
-		--disable-systemd \
-		--enable-shared \
-		--without-rcdir \
-		--with-cups-user=lp \
-		--with-cups-group=lp \
-		--with-system-groups=wheel \
-		--with-icondir=/share/icons \
-		--with-menudir=/share/applications \
-		$with_acl \
-		$with_dbus \
-		$with_pam
-	make
-	make install BUILDROOT=$DESTDIR
-	install -Dm0644 ../cupsd $DESTDIR/etc/rc.d/cupsd
+# --without-rcdir: do not install custom init scripts.
+CC="$CC" \
+CFLAGS="$CFLAGS" \
+CXX="$CXX" \
+CXXFLAGS="$CXXFLAGS" \
+LDFLAGS="$LDFLAGS" \
+LIBS="$LIBS" \
+./configure \
+	--build=$CBUILD \
+	--host=$CHOST \
+	--prefix= \
+	--sbindir=/bin \
+	--disable-systemd \
+	--enable-shared \
+	--without-rcdir \
+	--with-cups-user=lp \
+	--with-cups-group=lp \
+	--with-system-groups=wheel \
+	--with-icondir=/share/icons \
+	--with-menudir=/share/applications \
+	$with_acl \
+	$with_dbus \
+	$with_pam
+make
+make install BUILDROOT=$DESTDIR
+install -Dm0644 ../cupsd $DESTDIR/etc/rc.d/cupsd
 
-	if [ "$PAM" = "yes" ]; then
-		install -Dm0644 ../cups $DESTDIR/etc/pam.d/cups
-	fi
+if [ "$PAM" = "yes" ]; then
+	install -Dm0644 ../cups $DESTDIR/etc/pam.d/cups
+fi
 
-	cd ..
-	rm -rf $PKGNAME-$PKGVERSION
-}
+cd ..
+rm -rf $PKGNAME-$PKGVERSION