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})


Reply via email to