Commit dddc5503 authored by Natanael Copa's avatar Natanael Copa

run fakeroot from startdir

parent 75b47977
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment