diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2008-10-25 10:18:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2008-10-25 10:18:32 +0000 |
commit | dddc5503645e6b6621313efa989c2607c0f5f8d3 (patch) | |
tree | 204be15c6a49901f94f1636ba623988120607456 | |
parent | 75b479777f34593c258c02b5b5ca04deee1f4dba (diff) | |
download | abuild-dddc5503645e6b6621313efa989c2607c0f5f8d3.tar.gz abuild-dddc5503645e6b6621313efa989c2607c0f5f8d3.tar.bz2 abuild-dddc5503645e6b6621313efa989c2607c0f5f8d3.tar.xz abuild-dddc5503645e6b6621313efa989c2607c0f5f8d3.zip |
run fakeroot from startdir
-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) |