summaryrefslogtreecommitdiff
path: root/testing/itd/APKBUILD
blob: 949e4b02a220378e1b7e22887fc7f7b30aa627a5 (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
# Contributor: Eloi Torrents <eloitor@disroot.org>
# Maintainer: Eloi Torrents <eloitor@disroot.org>
pkgname=itd
pkgver=1.1.0
pkgrel=3
pkgdesc="Daemon that interfaces with InfiniTime firmware on the PineTime smartwatch"
url="https://gitea.elara.ws/Elara6331/itd"
arch="all"
license="GPL-3.0-only"
depends="bluez dbus"
makedepends="go"
source="$pkgname-v$pkgver.tar.gz::https://gitea.elara.ws/Elara6331/itd/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname"

prepare() {
	default_prepare

	echo -n $pkgver > version.txt
}

build() {
	make all -o version.txt
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
	# just a systemd service
	rm -r "$pkgdir"/usr/lib
}

sha512sums="
5fbaedf936c316defd5486d53ea20daefdfda05932f950a5885149cf2656fd753becd9a98e926b15ce25358906524a40661076d4a922136c1a91b0764ac3e13a  itd-v1.1.0.tar.gz
"