Skip to content

Commit

Permalink
chore(build): add deb package build script
Browse files Browse the repository at this point in the history
  • Loading branch information
iahmadgad committed Oct 25, 2024
1 parent 5f47b05 commit fd3e670
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions build_deb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env sh

while getopts ":v:a:" option; do
case $option in
v)
version="$OPTARG"
;;
a)
arch="$OPTARG"
;;
\?)
echo "Invalid option"
exit
;;
esac
done

arch_alias() {
case $1 in
"aarch64-linux-android")
echo "aarch64"
;;
"i686-linux-android")
echo "i686"
;;
"x86_64-linux-android")
echo "x86_64"
;;
"arm-linux-androideabi")
echo "arm"
;;
?)
echo "Invalid architecture name"
;;
esac
}

termux-create-package --pkg-version $version pkg/`arch_alias $arch`.json

0 comments on commit fd3e670

Please sign in to comment.