# Maintainer: Forest Crossman pkgname=digilent.waveforms pkgver=3.22.1 pkgrel=1 pkgdesc="Digilent WaveForms Application, Runtime and SDK" arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') url="https://digilent.com/reference/software/waveforms/waveforms-3/start" license=('custom') depends=('digilent.adept.runtime' 'hicolor-icon-theme' 'qt5-multimedia' 'qt5-script' 'qt5-serialport') optdepends=('python: Python example scripts' 'python-matplotlib: Python example scripts' 'python-numpy: Python example scripts' 'python-requests: Python example scripts' 'python-scipy: Python example scripts') options=('!strip') install=${pkgname}.install source_aarch64=("https://digilent.s3.amazonaws.com/Software/Waveforms2015/${pkgver}/${pkgname}_${pkgver}_arm64.deb") source_armv6h=("https://digilent.s3.amazonaws.com/Software/Waveforms2015/${pkgver}/${pkgname}_${pkgver}_armhf.deb") source_armv7h=($source_armv6h) source_i686=("https://digilent.s3.amazonaws.com/Software/Waveforms2015/${pkgver}/${pkgname}_${pkgver}_i386.deb") source_x86_64=("https://digilent.s3.amazonaws.com/Software/Waveforms2015/${pkgver}/${pkgname}_${pkgver}_amd64.deb") sha256sums_aarch64=('cc561673233a88d3da561d5afe0d2b681a6e85ddf0818b21a75e7d792db1ee32') sha256sums_armv6h=('6174b16496a9bc4dcc1bcff27557d69f94c51dbf237065b0334dbd3953e10a55') sha256sums_armv7h=($sha256sums_armv6h) sha256sums_i686=('b22888b88a2e3c5e01cc45396b15b1a8da201e04d6fbaa8363abd0db4b836748') sha256sums_x86_64=('53ef6638c9111074e3c1711271541b1787da68ab422a7aa41a59dbbac7d17f13') package() { # Extract tar -xJf data.tar.xz --exclude="usr/share/lintian" -C "${pkgdir}"/ # Install license file install -dm 755 "${pkgdir}/usr/share/licenses/${pkgname}" ln -s "/usr/share/doc/${pkgname}/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/copyright" # Install icons for _size in 32 256; do for _mimetype in application-x-dwf3project application-x-dwf3work; do install -Dm 644 "${pkgdir}/usr/share/digilent/waveforms/pixmaps/${_size}.png" "${pkgdir}/usr/share/icons/hicolor/${_size}x${_size}/mimetypes/${_mimetype}.png" done done }