Commit 2ed20742 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play aksusbd: add support for i386, aarch64, armhf

parent 3b548de7
...@@ -16,18 +16,54 @@ else ...@@ -16,18 +16,54 @@ else
fatal "How no idea how to handle $TAR" fatal "How no idea how to handle $TAR"
fi fi
# select package by package type and target arch
pkgtype="$(epm print info -p)" pkgtype="$(epm print info -p)"
case $pkgtype in
rpm) if [ "$pkgtype" = "rpm" ] ; then
pkg="aksusbd-*.x86_64.rpm"
;; case "$(epm print info -a)" in
deb) x86_64)
pkg="aksusbd_*_amd64.deb" arch="x86_64"
;; ;;
*) x86)
pkg="aksusbd_*_amd64.deb" arch="i386"
;; ;;
esac aarch64)
arch="aarch64"
;;
armhf)
arch="armv7hl"
;;
*)
fatal "Unsupported arch"
;;
esac
pkg="aksusbd-*.$arch.rpm"
else
case "$(epm print info -a)" in
x86_64)
arch="amd64"
;;
x86)
arch="i386"
;;
aarch64)
arch="arm64"
;;
armhf)
arch="armhf"
;;
*)
fatal "Unsupported arch"
;;
esac
pkg="aksusbd_*_$arch.deb"
fi
mv -v $PRODUCT*/pkg/$pkg . || fatal mv -v $PRODUCT*/pkg/$pkg . || fatal
......
#!/bin/sh #!/bin/sh
PKGNAME=aksusbd PKGNAME=aksusbd
SUPPORTEDARCHES="x86_64" SUPPORTEDARCHES="x86_64 x86 aarch64 armhf"
DESCRIPTION="Sentinel LDK daemon (HASP) from the official site" DESCRIPTION="Sentinel LDK daemon (HASP) from the official site"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment