Skip to content

Commit 1aa6a31

Browse files
authored
adjust: change name to standard debian
1 parent b47d827 commit 1aa6a31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

loong64-it/loong64-it.bash

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ abinfo() { echo -e "[\e[96mINFO\e[0m]: \e[1m$*\e[0m"; }
2121
abdbg() { echo -e "[\e[32mDEBUG\e[0m]: \e[1m$*\e[0m"; }
2222

2323
_convert_loong64() {
24+
HERE=$(basename $1)
25+
PKG_NAME=$(dpkg-deb -f "$1" Package)
26+
VERSION=$(dpkg-deb -f "$1" Version)
2427
abinfo "Examining package information: $1 ..."
2528
dpkg -I "$SRCDIR"/$1 || \
2629
aberr "Invalid dpkg package: control (metadata) archive not found: $?"
@@ -86,7 +89,7 @@ _convert_loong64() {
8689
abinfo """Your requested package:
8790
8891
$1
89-
92+
mv $1 $HERE/${PKG_NAME}_${VERSION}_loong64.deb
9093
Has been successfully converted as a loong64 package!
9194
9295
However, you may still need to install libLoL for old-world applications to

0 commit comments

Comments
 (0)