From 4d9b77ff5d7dc38ce0d796af6843fdd5c1aa0247 Mon Sep 17 00:00:00 2001 From: leleliu008 Date: Sat, 30 Mar 2024 02:21:31 +0800 Subject: [PATCH] optimized Signed-off-by: leleliu008 --- ppkg | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ppkg b/ppkg index 0f265f7..0ccedbe 100755 --- a/ppkg +++ b/ppkg @@ -2629,6 +2629,9 @@ __export_the_given_installed_package_as_rpm() { run install -d SPECS run install -d SRPMS + run touch main.c + run bsdtar cvaf SOURCES/src.tar.gz main.c + run tee SPECS/pkg.spec < pkgname=$RECEIPT_PACKAGE_PKGNAME pkgver=$RECEIPT_PACKAGE_VERSION pkgrel=0 @@ -2744,7 +2748,9 @@ EOF run cd - - TEPPUT_FILEPATH='packages/community/$RECEIPT_PACKAGE_BUILTFOR_PLATFORM_ARCH/*.apk' + run ls + + TEPPUT_FILEPATH="packages/community/$RECEIPT_PACKAGE_BUILTFOR_PLATFORM_ARCH/*.apk" } # }}}