diff options
author | Aaron Griffin <aaron@archlinux.org> | 2007-01-23 17:02:37 +0100 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-01-23 17:02:37 +0100 |
commit | 0e0738617b1909dff1460d9618133a04d9806514 (patch) | |
tree | fc1848bfc4f988e76eca7290853c2c07e33cb1fb /scripts | |
parent | 4db24ca28a31d1d0d97b30b186fd5255a0ae0113 (diff) | |
download | pacman-0e0738617b1909dff1460d9618133a04d9806514.tar.gz pacman-0e0738617b1909dff1460d9618133a04d9806514.tar.xz |
James Rosten <seinfeld90@gmail.com>
* noextract PKGBUILD option to NOT extract source files
- implemented with existing in_array function
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/makepkg | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/makepkg b/scripts/makepkg index 93023a1f..9f034b96 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -425,7 +425,7 @@ fi 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 @@ else 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 |