summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c9043ef7617d1c883e00d73ce7db30dc185a480 (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
# Maintainer: iris snazzsinclair@gmail.com
pkgname=revhubinterface-git
_pkgname=RevHubInterface
pkgver=1.4
pkgrel=1
pkgdesc="Software for controling a REV Expansion Hub on a PC over USB"
arch=('any')
url="https://github.com/unofficial-rev-port/REVHubInterface"
license=('BSD3')
makedepends=(
			'git'
            'pyinstaller'
            'python>=3.7'
		    'python-pyserial'
            'tk'
            'python-sv-ttk'
)
source=("$_pkgname::git+https://github.com/unofficial-rev-port/REVHubInterface.git#tag=v1.4")
b2sums=('SKIP')
pkgver(){
    cd $_pkgname
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'    
}   
build(){
    cd $_pkgname
    pyinstaller REVHubInterface.spec
}
package(){
    cd $_pkgname
    cp org.unofficialrevport.REVHubInterface.Devel.png revhubinterface.png
    install -Dm644 -t "${pkgdir}/usr/share/pixmaps"  revhubinterface.png
    install -Dm644 -t "${pkgdir}/usr/share/applications" revhubinterface.desktop
    cd dist
    cp REVHubInterface revhubinterface
    install -Dm755 -t "${pkgdir}/usr/bin" revhubinterface
}