archrelease: copy trunk to community-any
[ArchLinux/community.git] / srsgui / trunk / PKGBUILD
blobc4f01eb24bfefff02f9431805bbac2d4d1d98c96
1 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 pkgname=srsgui
4 _pkgname=srsGUI
5 pkgver=2.0
6 _tag=release_${pkgver/./_}_qt5
7 pkgrel=2
8 pkgdesc='A graphics library for software radio'
9 arch=('x86_64')
10 url='https://github.com/srsLTE/srsGUI'
11 license=('AGPL3')
12 depends=('boost-libs' 'qt5-base' 'qwt')
13 makedepends=('cmake' 'boost')
14 source=("$_pkgname-$pkgver.tar.gz::$url/archive/$_tag.tar.gz"
15          srsgui-qwt-6.2.patch)
16 sha512sums=('9d766a80fc81b015f5c8dbed3fa97d417496a0e4db11bd23a66bae4c3a2d7e0206f2569af8884d01b40702416dab6add52cc0ef04f29b176aba99de00466a88d'
17             '1097681e57d0548db36db9ab1331e6e96554b44618b21ee08631e188e092796d57ec49c0456055b633026246eb652f75cd7470c60bb530ebf246d92cd9f28b5e')
19 prepare() {
20   patch -d $_pkgname-$_tag -p1 < srsgui-qwt-6.2.patch # Fix build with qwt 6.2
23 build() {
24   mkdir $_pkgname-$_tag/build
25   cd $_pkgname-$_tag/build
27   cmake .. \
28     -DCMAKE_INSTALL_PREFIX=/usr \
29     -DCMAKE_BUILD_TYPE=Release \
30     -DQWT_NAMES=qwt
32   make
35 package() {
36   cd $_pkgname-$_tag/build
38   make DESTDIR="$pkgdir" install