From dddc5503645e6b6621313efa989c2607c0f5f8d3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sat, 25 Oct 2008 10:18:32 +0000 Subject: run fakeroot from startdir --- abuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/abuild b/abuild index 4bac915..6218836 100755 --- a/abuild +++ b/abuild @@ -229,13 +229,14 @@ dev() { # build and package in fakeroot rootpkg() { + cd "$startdir" fakeroot $0 build subpkg package } srcpkg() { local p="$pkgname-$pkgver" [ "$pkgrel" -ne 0 ] && p="$p-r$pkgrel" - local prefix="${PWD##*/}" + local prefix="${startdir##*/}" local i files="$prefix/APKBUILD" for i in $source; do files="$files $prefix/${i##*/}" @@ -250,6 +251,7 @@ up2date() { [ "$pkgrel" -ne 0 ] && p="$p-r$pkgrel" local pkg="$PKGDEST/$p.apk" local i s + cd "$startdir" [ -f "$pkg" ] || return 1 for i in $source APKBUILD; do local s="$SRCDEST/${i##*/}" # $(basename $i) -- cgit v1.2.3-70-g09d2