File PKGBUILD of Package weasis-bin
# Maintainer: tugyan <bilaltasdelen at windowslive dot com>
# Contributor: jkdhn <aur@jkdhn.me>
pkgname=weasis-bin
pkgver=4.6.2
pkgrel=1
pkgdesc="Weasis is a free medical DICOM viewer used in healthcare by hospitals, health networks, multicenter research trials, and patients."
arch=('x86_64' 'aarch64')
url="https://nroduit.github.io/"
license=('EPL-2.0')
options=('!strip' '!emptydirs')
# source=("https://github.com/nroduit/Weasis/releases/download/v${pkgver}/weasis_${pkgver}-1_amd64.deb")
source_x86_64=("https://github.com/nroduit/Weasis/releases/download/v${pkgver}/weasis_${pkgver}-1_amd64.deb")
sha512sums_x86_64=('5140449ca26f5c1149e728848fd7edfe81d013654d7ea3b66840785a40844b603fe2ec1320342a3f520558c1fc70a8c7027a50b765a983dd8f55c094c5aba755')
package(){
tar --zstd -xC "${pkgdir}" -f data.tar.zst
mkdir -p "${pkgdir}/usr/bin"
ln -s "/opt/weasis/bin/Weasis" "$pkgdir/usr/bin/weasis"
ln -s "/opt/weasis/bin/Dicomizer" "$pkgdir/usr/bin/dicomizer"
install -Dm 644 ${pkgdir}/opt/weasis/lib/weasis-Weasis.desktop ${pkgdir}/usr/share/applications/Weasis.desktop
install -Dm 644 ${pkgdir}/opt/weasis/lib/weasis-Dicomizer.desktop ${pkgdir}/usr/share/applications/Dicomizer.desktop
}