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

pkgname=qslave
pkgver=1.0.2
pkgrel=1
pkgdecs="Modbus RTU network emulator for PC"
arch=('x86_64')
url="https://github.com/masivendoo/qslave.git"
license=('GPL')
depends=('qt5-base')
makedepends=('git' 'gendesk')

source=("git+https://github.com/maisvendoo/qslave.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 $pkgname-gui/resources/img/logo.png $pkgdir/usr/share/pixmaps/$pkgname.png
	install -Dm644 cfg/example/example.net $pkgdir/etc/qslave/example/example.net
	install -Dm644 cfg/example/traffic-light.xml $pkgdir/etc/qslave/example/traffic-light.xml
	
	cd ../bin
	install -Dm755 $pkgname-gui $pkgdir/usr/bin/$pkgname 
}