diff graphics/mesa/mesa.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents ddab65a5b3f5
children 27d1a83dc8d6
line wrap: on
line diff
--- a/graphics/mesa/mesa.sh	Wed Jul 28 15:24:46 2021 +0200
+++ b/graphics/mesa/mesa.sh	Wed Sep 29 13:49:32 2021 +0200
@@ -103,39 +103,36 @@
 	with_glx="-D glx=disabled"
 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
 
-	patch -p0 < ../disable-tls.patch
-	# https://git.alpinelinux.org/aports/plain/main/mesa/musl-fix-includes.patch
-	patch -p1 < ../musl.patch
-	CC="$CC" \
-	CFLAGS="$CFLAGS" \
-	CXX="$CXX" \
-	CXXFLAGS="$CXXFLAGS" \
-	LDFLAGS="$LDFLAGS" \
-	meson . build \
-		--prefix / \
-		--buildtype release \
-		--default-library shared \
-		-D libdir=lib \
-		-D bpm=true \
-		-D platforms="$with_platforms" \
-		-D dri-drivers="$with_dri_drivers" \
-		-D gallium-drivers="$with_gallium_drivers" \
-		-D vulkan-drivers="$with_vulkan_drivers" \
-		$with_dri \
-		$with_egl \
-		$with_glvnd \
-		$with_glx \
-		$with_llvm
-	ninja -C build
-	DESTDIR=$DESTDIR ninja -C build install
-	sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc
+patch -p0 < ../disable-tls.patch
+# https://git.alpinelinux.org/aports/plain/main/mesa/musl-fix-includes.patch
+patch -p1 < ../musl.patch
+CC="$CC" \
+CFLAGS="$CFLAGS" \
+CXX="$CXX" \
+CXXFLAGS="$CXXFLAGS" \
+LDFLAGS="$LDFLAGS" \
+meson . build \
+	--prefix / \
+	--buildtype release \
+	--default-library shared \
+	-D libdir=lib \
+	-D bpm=true \
+	-D platforms="$with_platforms" \
+	-D dri-drivers="$with_dri_drivers" \
+	-D gallium-drivers="$with_gallium_drivers" \
+	-D vulkan-drivers="$with_vulkan_drivers" \
+	$with_dri \
+	$with_egl \
+	$with_glvnd \
+	$with_glx \
+	$with_llvm
+ninja -C build
+DESTDIR=$DESTDIR ninja -C build install
+sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc
 
-	cd ..
-	rm -rf $PKGNAME-$PKGVERSION
-}
+cd ..
+rm -rf $PKGNAME-$PKGVERSION