archrelease: copy trunk to community-any
[ArchLinux/community.git] / pulseview / repos / community-x86_64 / PKGBUILD
blob456cffb8175eea3af8dd5a30e96343e09d6c9475
1 # Maintainer: Anatol Pomozov
2 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 # Contributor: Thomas Krug <t.krug@elektronenpumpe.de>
5 pkgname=pulseview
6 pkgver=0.4.2
7 pkgrel=9
8 pkgdesc='A Qt based logic analyzer GUI for sigrok'
9 arch=('x86_64')
10 url='https://sigrok.org/wiki/Main_Page'
11 license=('GPL3')
12 depends=('libsigrok' 'libsigrokdecode' 'qt5-base' 'qt5-svg' 'boost-libs')
13 makedepends=('cmake' 'boost' 'qt5-tools')
14 source=("https://sigrok.org/download/source/pulseview/pulseview-$pkgver.tar.gz"
15         "qt5.15.patch::https://github.com/sigrokproject/pulseview/commit/ae726b70a7ada9a4be5808e00f0c951318479684.patch"
16         glib-2.68.patch)
17 sha512sums=('79f653c9faad021c03b59b4a519b594190d5558dfb9be60cabcc2a35e991e66b733b337fec58a9248699e7aef0df3be1472c81f93274b25cec1fc6b73f8f033b'
18             'e115c29151474d5dc905042ee699542abdcc9db523d45595cf0386f0efb9523b292536972074536cb330ede90b41e1edd591888bceb5155b49657937f87e9087'
19             'b48b0ff4cc962a252cb8e1c21f9b0661d33399d99dae2fd7d0bb87da8c0e16cba66b4a8c1797dbb53dfa83eb7050b0248024aa013edaecf40183bad39d10e243')
21 prepare() {
22   cd $pkgname-$pkgver
24   patch -p1 < ../qt5.15.patch
26   # https://github.com/sigrokproject/pulseview/pull/39
27   patch -p1 < ../glib-2.68.patch
30 build() {
31   cd $pkgname-$pkgver
33   cmake . \
34         -DCMAKE_INSTALL_PREFIX:PATH=/usr \
35         -DCMAKE_CXX_FLAGS=-fext-numeric-literals \
36         -DDISABLE_WERROR=ON -DENABLE_TESTS=OFF
38   make
41 package() {
42   cd $pkgname-$pkgver
44   make DESTDIR="$pkgdir" install