ayaports/user/rmfakecloud/APKBUILD
Antoine Martin 888654be5c
All checks were successful
/ lint (pull_request) Successful in 32s
/ build-x86_64 (pull_request) Successful in 2m31s
/ deploy-x86_64 (pull_request) Successful in 31s
/ deploy-aarch64 (pull_request) Successful in 54s
/ build-aarch64 (pull_request) Successful in 9m20s
user/rmfakecloud: upgrade to 0.0.19
2024-08-26 11:04:13 -04:00

43 lines
1.4 KiB
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=rmfakecloud
pkgver=0.0.19
_gittag=v$pkgver
pkgrel=0
pkgdesc="A selfhosted cloud for the Remarkable Tablet"
url="https://github.com/ddvk/rmfakecloud"
arch="all"
license="AGPL-3.0-only"
makedepends="go yarn"
options="chmod-clean net"
source="
$pkgname-$pkgver.tar.gz::https://github.com/ddvk/rmfakecloud/archive/v$pkgver.tar.gz
rmfakecloud.conf
rmfakecloud.openrc
"
subpackages="$pkgname-openrc"
build() {
export GOPATH="$srcdir/go"
export LDFLAGS="$LDFLAGS -X main.version=$pkgver"
yarn --cwd ui
yarn --cwd ui build
go build ./cmd/rmfakecloud
}
check() {
export GOPATH="$srcdir/go"
make test testgo testui
}
package() {
install -Dm755 "$builddir"/rmfakecloud "$pkgdir"/usr/bin/rmfakecloud
install -Dm644 "$srcdir"/rmfakecloud.conf "$pkgdir"/etc/conf.d/rmfakecloud
install -Dm755 "$srcdir"/rmfakecloud.openrc "$pkgdir"/etc/init.d/rmfakecloud
}
sha512sums="
55948ede5f8a4cc9e74c9c68f83d14dec4950f23da5ef053f3ae708edf2643f64e5736abfe63cbf6700e5277adff7167ce0f228a8241169261f4ce59e2815a35 rmfakecloud-0.0.19.tar.gz
d5677cef282085cd6642a034dd258ffa294862aeb0ce81d6485a524a15564849bc4eb90a9d1fa4dbcf4eab69dcd893302aa06493fc8fad74d69200c2bdf246c0 rmfakecloud.conf
891d0945886796132f951293e081046334857563b4ebae28a3aa5b6bc37768767c49ce102de645ed8340af2518de606be8bf6ecafeb6d189dd937970aa3e6498 rmfakecloud.openrc
"