[pacman-dev] makepkg and NOT extracting netfiles

James Rosten seinfeld90 at gmail.com
Tue Jan 23 00:40:21 EST 2007


Okay...blame wizzomafizzo :P.  Because of the new way makepkg deals with files
(not using the extension), files that are actually zipfiles but called something
else that do not need to be extracted will be extracted (this is wizz's
example).  Best example I can think of is like a .pk3 file for some games
(which I think is really just a zipfile).  Anyway....we came up with the idea of
a noextract=(...) field in the PKGBUILD and the patch is below.

I'm not entirely too sure on whether or not this is entirely necessary...but oh
well.

Patch is below.

~ Jamie / yankees26

Signed-off-by: James Rosten <seinfeld90 at gmail.com>

Index: makepkg
===================================================================
RCS file: /home/cvs-pacman/pacman-lib/scripts/makepkg,v
retrieving revision 1.33
diff -u -r1.33 makepkg
--- makepkg 22 Jan 2007 19:26:23 -0000  1.33
+++ makepkg 23 Jan 2007 05:34:25 -0000
@@ -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
@@ -680,7 +680,17 @@
    msg "Extracting Sources..."
    for netfile in "${source[@]}"; do
        unziphack=0
+       NoExtract=0
        file=$(strip_url "$netfile")
+       for skipfile in "${noextract[@]}"; do
+           if [ "$skipfile" = "$file" ]; then
+               NoExtract=1
+               break;
+           fi
+       done
+       if [ $NoExtract -eq 1 ]; then
+           continue;
+       fi
        # fix flyspray #6246
        file_type=$(file -biz "$file")
        unset cmd





More information about the pacman-dev mailing list