summaryrefslogtreecommitdiff
path: root/libremakepkg
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-06-01 02:43:03 -0500
committerJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-06-01 02:43:03 -0500
commit206df56bc34fe60e2041240cc5e0d62b0befd71a (patch)
tree94cb45b59a2d9d472f212c723c2c609d381cf431 /libremakepkg
parent2b3661e346d2ffcecba23c190080dc15a24780cb (diff)
libremakepkg pass long opts to makepkg
Diffstat (limited to 'libremakepkg')
-rwxr-xr-xlibremakepkg7
1 files changed, 5 insertions, 2 deletions
diff --git a/libremakepkg b/libremakepkg
index 8af1581..c045ef1 100755
--- a/libremakepkg
+++ b/libremakepkg
@@ -32,6 +32,7 @@ function usage {
echo " -c : cleans CHCOPY before building."
echo " -u : updates CHROOT before building."
echo " -n : use this dir instead of CHCOPY."
+ echo " -M \"makepkg long args\" : passes long args to makepkg"
echo " -I pkgname : install this package, use it as many times needed."
echo
}
@@ -41,8 +42,9 @@ CLEAN_CACHE=""
update_first="n"
chrootname=${CHCOPY}
_PKGINSTALL=""
+_MAKEPKG_ARGS=""
#libremakepkg own args
-libremakepkgargs='hcun:I:'
+libremakepkgargs='hcun:I:M:'
#now makepkg args
libremakepkgargs+='ACdefiLmop:rRs'
@@ -53,7 +55,8 @@ while getopts ${libremakepkgargs} arg ; do
u) update_first="y" ;;
n) chrootname="$OPTARG"; echo $chrootname ;;
I) _PKGINSTALL+="-I $OPTARG " ;;
- *) _MAKEPKG_ARGS="$MAKEPKG_ARGS -$arg $OPTARG" ;;
+ M) _MAKEPKG_ARGS+=" $OPTARG" ;;
+ *) _MAKEPKG_ARGS+=" -$arg $OPTARG" ;;
esac
done