summaryrefslogtreecommitdiff
path: root/auto/port-alpine.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:08:34 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:08:34 +0100
commitf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (patch)
tree31fe2a493efcc3ec8721b8ae9943a0f938cd3f4d /auto/port-alpine.sh
parente4a392b4e1e547c9569abdd1f08ec51da3dc4562 (diff)
added qemu
Diffstat (limited to 'auto/port-alpine.sh')
-rwxr-xr-xauto/port-alpine.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/auto/port-alpine.sh b/auto/port-alpine.sh
index 149572e..e1cda3e 100755
--- a/auto/port-alpine.sh
+++ b/auto/port-alpine.sh
@@ -15,7 +15,7 @@ additional=$(ls $pkgbuild | grep -v ^APKBUILD$)
. $apkbuild
-name=${2:-$pkgname}
+[ ! -z "$2" ] && name=${2}
name=$(echo $pkgname | sed 's/py3-/python-/' )
@@ -78,8 +78,9 @@ sed -i "s/\$srcdir/\$BUILD_ROOT/g" $buildfile
sed -i "s/\$builddir/\$BUILD_ROOT/g" $buildfile
sed -i "s/^sha512sums=.*$//g" $buildfile
# ignore build and host options for configure; we arent cross compiling
-sed -i "s/^\w*--build=//g" $buildfile
-sed -i "s/^\w*--host=//g" $buildfile
+sed -i "s/^\s*--build=.*$//g" $buildfile
+sed -i "s/^\s*--host=.*$//g" $buildfile
+sed -i "s/default_prepare/apply_patches/g" $buildfile
sed -i 's/abuild-meson/meson --prefix=\/usr \\\n/' $buildfile