Change directory in package function in PKGBUILD.proto

makepkg goes back to the $startdir between the build() and
package() functions so we need to change directory at the
start of the package function.

TODO: fix makepkg to make this unnecessary

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2010-05-19 20:33:35 +10:00
parent 9ab6bfad22
commit f948cb25bb
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ build() {
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}