blob: 8c1f8bb5d75fe761adb53df9927fdb6382d8ecfa (
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
|
# Maintainer: The3DmaN <the3dman dot appdev at protonmail dot com>
pkgname=ha-connect-git
pkgver=r36.caf705e
pkgrel=1
pkgdesc="App to connect to Home Assistant server web interface"
arch=("any")
url="https://gitlab.com/The3DmaN/${pkgname%-git}"
license=("GPL3")
makedepends=("git")
depends=("qt5-svg" "qt5-base" "qt5-webengine" "qt5-webview" "qt5-wayland" "qt5-quickcontrols2")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://gitlab.com/The3DmaN/${pkgname%-git}.git")
md5sums=("SKIP")
build()
{
cd "$srcdir/${pkgname%-git}"
# and make qt gui
qmake-qt5 USE_QRCODE=1 USE_UPNP=1
make
}
pkgver()
{
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package()
{
cd "$srcdir/${pkgname%-git}"
install -Dm644 HA-Connect.desktop "$pkgdir"/usr/share/applications/HA-Connect.desktop
install -Dm644 images/ha-connect.svg "$pkgdir"/usr/share/icons/hicolor/scalable/apps/ha-connect.svg
install -Dm755 ha-connect "$pkgdir"/usr/bin/ha-connect
}
|