summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2008-10-25 10:18:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2008-10-25 10:18:32 +0000
commitdddc5503645e6b6621313efa989c2607c0f5f8d3 (patch)
tree204be15c6a49901f94f1636ba623988120607456
parent75b479777f34593c258c02b5b5ca04deee1f4dba (diff)
downloadabuild-dddc5503645e6b6621313efa989c2607c0f5f8d3.tar.gz
abuild-dddc5503645e6b6621313efa989c2607c0f5f8d3.tar.bz2
abuild-dddc5503645e6b6621313efa989c2607c0f5f8d3.tar.xz
abuild-dddc5503645e6b6621313efa989c2607c0f5f8d3.zip
run fakeroot from startdir
-rwxr-xr-xabuild4
1 files changed, 3 insertions, 1 deletions
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)