[pacman-dev] [PATCH] Change directory in package function in PKGBUILD.proto
Allan McRae
allan at archlinux.org
Wed May 19 08:32:54 EDT 2010
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 at archlinux.org>
---
PKGBUILD.proto | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/PKGBUILD.proto b/PKGBUILD.proto
index 0134574..b4d9c94 100644
--- a/PKGBUILD.proto
+++ b/PKGBUILD.proto
@@ -34,6 +34,8 @@ build() {
}
package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
make DESTDIR="$pkgdir/" install
}
--
1.7.1
More information about the pacman-dev
mailing list