# Maintainer: Cody Schafer # Maintainer: Jake # Contributor: Thomas Krug # epoch 0: up to 1.11 # epoch 1: 1.2.0 epoch=1 pkgname=dsview pkgver=1.3.1 pkgrel=1 pkgdesc="Client software that supports the DreamSourceLab logic analyzer" arch=('i686' 'x86_64') url="http://www.dreamsourcelab.com/" license=('GPL3') depends=('hicolor-icon-theme' 'qt5-base' 'fftw' 'python' 'libusb') makedepends=('cmake' 'ninja' 'boost') source=( "DSView-$pkgver.tar.gz::https://github.com/DreamSourceLab/DSView/archive/v${pkgver}.tar.gz" ) sha384sums=('32d23c8a81e56ee7fae4cda171365b3a54cab9d68f6b73954776aec0c0ee3abeb91259ea16ee1fad90c1fc0f5a895fa6') prepare() { sed -i 's#MODE="0666"#TAG+="uaccess"#' \ "DSView-${pkgver}/DSView/DreamSourceLab.rules" } build() { cmake -B build -S "DSView-${pkgver}" \ -GNinja \ -DCMAKE_BUILD_TYPE='None' \ -DCMAKE_INSTALL_PREFIX='/usr' \ -Wno-dev cmake --build build } check() { ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build ln -s "DSView" "${pkgdir}/usr/bin/${pkgname}" } # vim:set ts=2 sw=2 et: