diff bluetooth/bluez/bluez.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/bluetooth/bluez/bluez.sh	Wed Jul 28 15:24:46 2021 +0200
+++ b/bluetooth/bluez/bluez.sh	Wed Sep 29 13:49:32 2021 +0200
@@ -64,35 +64,32 @@
 	with_udev="--disable-udev"
 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
 
-	# --enable-library: required by many packages.
-	CC="$CC" \
-	CFLAGS="$CFLAGS" \
-	CXX="$CXX" \
-	CXXFLAGS="$CXXFLAGS" \
-	LDFLAGS="$LDFLAGS" \
-	LIBS="$LIBS" \
-	./configure \
-		--build=$CBUILD \
-		--host=$CHOST \
-		--prefix= \
-		--disable-systemd \
-		--enable-library \
-		$with_audio \
-		$with_cups \
-		$with_legacy \
-		$with_udev
-	make
-	make install DESTDIR=$DESTDIR
-	find $DESTDIR -type f -name "*.la" -delete
-	install -Dm0644 src/main.conf $DESTDIR/etc/bluetooth/main.conf
-	install -Dm0644 ../bluetooth $DESTDIR/etc/rc.d/bluetooth
+# --enable-library: required by many packages.
+CC="$CC" \
+CFLAGS="$CFLAGS" \
+CXX="$CXX" \
+CXXFLAGS="$CXXFLAGS" \
+LDFLAGS="$LDFLAGS" \
+LIBS="$LIBS" \
+./configure \
+	--build=$CBUILD \
+	--host=$CHOST \
+	--prefix= \
+	--disable-systemd \
+	--enable-library \
+	$with_audio \
+	$with_cups \
+	$with_legacy \
+	$with_udev
+make
+make install DESTDIR=$DESTDIR
+find $DESTDIR -type f -name "*.la" -delete
+install -Dm0644 src/main.conf $DESTDIR/etc/bluetooth/main.conf
+install -Dm0644 ../bluetooth $DESTDIR/etc/rc.d/bluetooth
 
-	cd ..
-	rm -rf $PKGNAME-$PKGVERSION
-}
+cd ..
+rm -rf $PKGNAME-$PKGVERSION