[pacman-dev] makepkg enhancements: globstar and variable expansions in PURGE_TARGETS, MAN_DIRS, etc.

Allan McRae allan at archlinux.org
Sat Nov 14 05:40:13 EST 2009

Ciprian Dorin, Craciun wrote:

>     One quick note. I've tried what you've suggested (`package/*/...`)
> and it doesn't work (as expected `*` expands before anything is in the
> current dir).

It does not expand it until it actually uses the value in the array. 
i.e. when it goes to do the man page compression/purging.

This is my test PKGBUILD

--start PKGBUILD--

pkgdesc="text with spaces"
arch=('i686' 'x86_64')
license=('testing the license')

build () {
   return 0

package() {
   mkdir -p ${pkgdir}/package/foobar-2.1/usr/share/man/man1
   echo "I am a man page" > 

--end PKGBUILD--

I get that "man page" compressed with


More information about the pacman-dev mailing list