Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
Signed-off-by: leleliu008 <[email protected]>
  • Loading branch information
leleliu008 committed Mar 29, 2024
1 parent e08f02b commit 4d9b77f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ppkg
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
Name: $RECEIPT_PACKAGE_PKGNAME
Version: $RECEIPT_PACKAGE_VERSION
Expand Down Expand Up @@ -2714,6 +2717,7 @@ __export_the_given_installed_package_as_apk() {
run install -d aports/community/pkg
run cd aports/community/pkg
run tee APKBUILD <<EOF
# Maintainer: leleliu008 <[email protected]>
pkgname=$RECEIPT_PACKAGE_PKGNAME
pkgver=$RECEIPT_PACKAGE_VERSION
pkgrel=0
Expand Down Expand Up @@ -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"
}

# }}}
Expand Down

0 comments on commit 4d9b77f

Please sign in to comment.