summaryrefslogtreecommitdiff
path: root/libremakepkg
diff options
context:
space:
mode:
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