[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--
pkgname=('t1')
pkgdesc="text with spaces"
pkgver=1
pkgrel=1
arch=('i686' 'x86_64')
license=('testing the license')
depends=('pacman')
build () {
return 0
}
package() {
mkdir -p ${pkgdir}/package/foobar-2.1/usr/share/man/man1
echo "I am a man page" >
${pkgdir}/package/foobar-2.1/usr/share/man/man1/test.1
}
--end PKGBUILD--
I get that "man page" compressed with
MAN_DIRS=({package/*,}{usr{,/local}{,/share},opt/*}/{man,info})
More information about the pacman-dev
mailing list