summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b4229aaad4289d4f115eb69c58c1ea75cb0ae1c8 (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
# Contributor: Dmitry Pritykin maisvendoo@gmail.com

pkgname=qmaster
pkgver=0.2.3
pkgrel=2
pkgdesc="Modbus RTU master device emulator for PC"
arch=('x86_64')
url="https://github.com/maisvendoo/qmaster"
license=('GPL')
depends=('qt5-base' 'qt5-serialbus')
makedepends=('git' 'gendesk')

source=("git+https://github.com/maisvendoo/qmaster.git")

sha256sums=('SKIP')

build() {
	
	cd $srcdir
	mkdir build
	cd build
	qmake ../$pkgname
	make
}

prepare() {

	
	gendesk -n --pkgname=$pkgname --pkgdesc=$pkgname
}

package() {
	
	cd $srcdir/$pkgname
	install -Dm644 LICENSE $pkgdir/usr/share/license/$pkgname/LICENSE
	install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
	install -Dm644 resources/img/logo.png $pkgdir/usr/share/pixmaps/$pkgname.png
	
	cd ../bin
	install -Dm755 $pkgname $pkgdir/usr/bin/$pkgname 
}