30 Sep
2010
30 Sep
'10
3:29 p.m.
Allan McRae wrote:
No. It also affects the location of the tarfile. e.g. PKGDEST="." puts the tar file in $pkgdir because we create the tarball location using $PKGDEST while in $pkgdir:
cd $pkgdir ... pkg_file="$PKGDEST/${nameofpkg}-${pkgver}-${pkgrel}-${PKGARCH}${PKGEXT}" ...
ok but do we need to be in $pkgdir ? IIRC this is exactly what I had to change in repo-add (the current working dir). The problem is always the same : if we change dir, then relative paths become broken. Looking at the create_package function, it seems we just need to add a few $pkgdir/ here and there.