summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a97a7e208f8a4275e3d0d467da7704361906397b (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
# Maintainer: nezu (aka dumbasPL) <vapciogaming@gmail.com>
pkgname=qmodmaster
pkgver=0.5.2
pkgrel=4
_fullver="$pkgver-3"
pkgdesc='QModMaster is a free Qt-based implementation of a ModBus master application. A graphical user interface allows easy communication with ModBus RTU and TCP slaves. QModMaster also includes a bus monitor for examining all traffic on the bus.'
arch=('any')
url='https://sourceforge.net/projects/qmodmaster/'

license=('LGPLv3')
depends=('qt5-base')
makedepends=('qt5-tools')

source=("$pkgname-code-$_fullver.zip::https://sourceforge.net/projects/$pkgname/files/qModMaster-code-$_fullver.zip/download"
        "$pkgname.desktop"
        "hideini.patch")
md5sums=('a6d99220ab398395e40df27f7a6765bb'
         '90ac286373187fbd954b5e12dd477ccf'
         'f24d9aac85c5607525bbf985208dfb00')

prepare() {
  cd "$srcdir/qModMaster-code-$_fullver"
  patch --strip=1 --input="${srcdir}/hideini.patch"
}

build() {
  cd "$srcdir/qModMaster-code-$_fullver"
  qmake-qt5
  make
}

package() {
  mkdir -p "$pkgdir/usr/share/$pkgname/data/"
  mkdir -p "$pkgdir/usr/share/applications"
  mkdir -p "$pkgdir/usr/bin"

  cp "$srcdir/qModMaster-code-$_fullver/qModMaster" "$pkgdir/usr/bin/$pkgname"
  cp "$srcdir/qModMaster-code-$_fullver/icons/connect-24.png" "$pkgdir/usr/share/$pkgname/data/icon.png"
  cp "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/"
}