-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: leleliu008 <[email protected]>
- Loading branch information
1 parent
e08f02b
commit 4d9b77f
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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" | ||
} | ||
|
||
# }}} | ||
|