[pacman-dev] CVS update of pacman-lib/scripts (makepkg)

Aaron Griffin aaron at archlinux.org
Tue Jan 23 11:02:37 EST 2007


    Date: Tuesday, January 23, 2007 @ 11:02:37
  Author: aaron
    Path: /home/cvs-pacman/pacman-lib/scripts

Modified: makepkg (1.33 -> 1.34)

James Rosten <seinfeld90 at gmail.com>
* noextract PKGBUILD option to NOT extract source files
- implemented with existing in_array function


---------+
 makepkg |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


Index: pacman-lib/scripts/makepkg
diff -u pacman-lib/scripts/makepkg:1.33 pacman-lib/scripts/makepkg:1.34
--- pacman-lib/scripts/makepkg:1.33	Mon Jan 22 14:26:23 2007
+++ pacman-lib/scripts/makepkg	Tue Jan 23 11:02:37 2007
@@ -425,7 +425,7 @@
 
 unset pkgname pkgver pkgrel pkgdesc url license groups provides md5sums force
 unset replaces depends conflicts backup source install build makedepends
-unset options
+unset options noextract
 
 # some applications (eg, blackbox) will not build with some languages
 unset LC_ALL LANG
@@ -681,6 +681,11 @@
 	for netfile in "${source[@]}"; do
 		unziphack=0
 		file=$(strip_url "$netfile")
+		if in_array "$file" ${noextract[@]}; then
+			#skip source files in the noextract=() array
+			#  these are marked explicitly to NOT be extracted
+			continue
+		fi
 		# fix flyspray #6246
 		file_type=$(file -biz "$file")
 		unset cmd




More information about the pacman-dev mailing list