summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d80c3d9fa06ada1dadc82d7c5d5d19ed016817b (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: Ikosse <andrelofgren@hotmail.co.uk>

pkgname=harbour-amazfish-git
pkgver=r849.34365e4
pkgrel=6
epoch=
pkgdesc="Companion application for Huami Devices and the Pinetime Infinitime"
arch=(x86_64 aarch64)
url="https://github.com/piggz/harbour-amazfish"
license=('AGPL3')
groups=()
depends=(
	'qt5-base'
	'karchive5'
	'kdb'
	'kcontacts5'
	'qt5-location'
	'qt5-connectivity'
	'qtmpris'
	'nemo-qml-plugin-dbus'
	'kirigami2'
	'bluez-qt5'
)
makedepends=('git')
checkdepends=()
optdepends=()
provides=('amazfish')
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(git+$url)
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/${pkgname%-git}"
	git submodule init
	git submodule update
}

build() {
	cd "$srcdir/${pkgname%-git}"
	qmake FLAVOR=kirigami PREFIX=/usr
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make INSTALL_ROOT="$pkgdir" install
}