diff options
-rwxr-xr-x | abuild | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |