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 <[email protected]>
---
 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


Reply via email to