Commit dddc5503 authored by Natanael Copa's avatar Natanael Copa

run fakeroot from startdir

parent 75b47977
...@@ -229,13 +229,14 @@ dev() { ...@@ -229,13 +229,14 @@ dev() {
# build and package in fakeroot # build and package in fakeroot
rootpkg() { rootpkg() {
cd "$startdir"
fakeroot $0 build subpkg package fakeroot $0 build subpkg package
} }
srcpkg() { srcpkg() {
local p="$pkgname-$pkgver" local p="$pkgname-$pkgver"
[ "$pkgrel" -ne 0 ] && p="$p-r$pkgrel" [ "$pkgrel" -ne 0 ] && p="$p-r$pkgrel"
local prefix="${PWD##*/}" local prefix="${startdir##*/}"
local i files="$prefix/APKBUILD" local i files="$prefix/APKBUILD"
for i in $source; do for i in $source; do
files="$files $prefix/${i##*/}" files="$files $prefix/${i##*/}"
...@@ -250,6 +251,7 @@ up2date() { ...@@ -250,6 +251,7 @@ up2date() {
[ "$pkgrel" -ne 0 ] && p="$p-r$pkgrel" [ "$pkgrel" -ne 0 ] && p="$p-r$pkgrel"
local pkg="$PKGDEST/$p.apk" local pkg="$PKGDEST/$p.apk"
local i s local i s
cd "$startdir"
[ -f "$pkg" ] || return 1 [ -f "$pkg" ] || return 1
for i in $source APKBUILD; do for i in $source APKBUILD; do
local s="$SRCDEST/${i##*/}" # $(basename $i) 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