--- makepkg 2005-01-12 00:01:28.000000000 +0100 +++ /root/hacked/makepkg 2005-03-10 10:44:02.000000000 +0100 @@ -192,6 +192,7 @@ echo " -r, --rmdeps Remove installed dependencies after a successful build" echo " -s, --syncdeps Install missing dependencies with pacman" echo " -w Write package to instead of the working dir" + echo " -q, --docs Do install doc and info directory's " echo echo " if -p is not specified, makepkg will look for a PKGBUILD" echo " file in the current directory." @@ -213,6 +214,7 @@ NOBUILD=0 RMDEPS=0 BUILDSCRIPT="./PKGBUILD" +DOCS=0 ARGLIST=$@ @@ -231,6 +233,7 @@ --nocolor) USE_COLOR="n" ;; --genmd5) GENMD5=1 ;; --rmdeps) RMDEPS=1 ;; + --docs) DOCS=1 ;; --help) usage exit 0 @@ -262,6 +265,7 @@ r) RMDEPS=1 ;; s) DEP_BIN=1 ;; w) PKGDEST=$OPTARG ;; + q) DOCS=1 ;; -) OPTIND=0 break @@ -561,9 +565,11 @@ fi # remove info/doc files -cd $startdir -rm -rf pkg/usr/info pkg/usr/share/info -rm -rf pkg/usr/doc pkg/usr/share/doc +if [ "$DOCS" = "0" ] ; then + cd $startdir + rm -rf pkg/usr/info pkg/usr/share/info + rm -rf pkg/usr/doc pkg/usr/share/doc +fi # move /usr/share/man files to /usr/man if [ -d pkg/usr/share/man ]; then