summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 93fd09959e1b00872bd92a69ab87aeedfb10368e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Anatol Pomozov
# Contributor: Thomas Krug <t.krug@elektronenpumpe.de>

pkgname=dsview-git
pkgver=0.95.r0.g3100bc8
pkgrel=1
pkgdesc='GUI programe for supporting various instruments from DreamSourceLab, including logic analyzer, oscilloscope, etc.'
arch=(i686 x86_64)
url='http://www.dreamsourcelab.com/'
license=(GPL3)
# Upstream added VCS dependency to libsigrokdecode :/
depends=(boost-libs qt5-base libsigrok4dsl-git libsigrokdecode-git)
makedepends=(boost cmake)
source=(git://github.com/DreamSourceLab/DSView
        Use-usr-share-for-resource-files-bin-folder-is-for-b.patch
        udev.rules
        dsview.desktop)
sha1sums=('SKIP'
          '80beaa22bab87925a38a9be56abdb7cb77d4ac5e'
          '50f23061fcd03e0aafdefb3b676f1846c036c856'
          '96d3a0168f392af655e2b309711d7810ad3c022f')
install=dsview.install

pkgver() {
  cd DSView
  git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
  cd DSView
  patch -p1 < "$srcdir/Use-usr-share-for-resource-files-bin-folder-is-for-b.patch"
}

build() {
  cd DSView/DSView

  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release # -DCMAKE_SKIP_RPATH=1
  make
}

package() {
  cd DSView/DSView

  make DESTDIR="$pkgdir" install

  install -Dm644 icons/logo_color.png "$pkgdir/usr/share/pixmaps/dsview.png"

  install -Dm644 "$srcdir/dsview.desktop" "$pkgdir/usr/share/applications/dsview.desktop"
  install -Dm644 "$srcdir/udev.rules" "$pkgdir/usr/lib/udev/rules.d/20-dsview.rules"
}