2023-01-10 19:13:33 +00:00
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
|
2021-11-30 21:44:44 +00:00
|
|
|
pkgname=rmfakecloud
|
2024-01-15 17:47:49 +00:00
|
|
|
pkgver=0.0.17
|
2023-01-10 20:23:30 +00:00
|
|
|
_gittag=v$pkgver
|
2021-11-30 21:44:44 +00:00
|
|
|
pkgrel=0
|
2023-01-10 19:13:33 +00:00
|
|
|
pkgdesc="A selfhosted cloud for the Remarkable Tablet"
|
2021-11-30 21:44:44 +00:00
|
|
|
url="https://github.com/ddvk/rmfakecloud"
|
2023-08-11 19:49:05 +00:00
|
|
|
arch="all"
|
2023-01-10 19:13:33 +00:00
|
|
|
license="AGPL-3.0-only"
|
2021-11-30 21:44:44 +00:00
|
|
|
makedepends="go yarn"
|
2023-01-10 19:13:33 +00:00
|
|
|
options="chmod-clean"
|
2021-11-30 21:44:44 +00:00
|
|
|
source="
|
2023-01-10 19:13:33 +00:00
|
|
|
$pkgname-$pkgver.tar.gz::https://github.com/ddvk/rmfakecloud/archive/v$pkgver.tar.gz
|
2021-11-30 21:44:44 +00:00
|
|
|
rmfakecloud.conf
|
2023-01-10 19:13:33 +00:00
|
|
|
rmfakecloud.openrc
|
|
|
|
"
|
2021-11-30 21:44:44 +00:00
|
|
|
subpackages="$pkgname-openrc"
|
|
|
|
|
2023-01-10 19:13:33 +00:00
|
|
|
case "$CTARGET_ARCH" in
|
|
|
|
aarch64)export GOARCH="arm64" ;;
|
|
|
|
armel) export GOARCH="arm" GOARM=5 ;;
|
|
|
|
armhf) export GOARCH="arm" GOARM=6 ;;
|
|
|
|
armv7) export GOARCH="arm" GOARM=7 ;;
|
|
|
|
s390x) export GOARCH="s390x" ;;
|
|
|
|
x86) export GOARCH="386" ;;
|
|
|
|
x86_64) export GOARCH="amd64" ;;
|
|
|
|
ppc64) export GOARCH="ppc64" ;;
|
|
|
|
ppc64le) export GOARCH="ppc64le" ;;
|
|
|
|
riscv64) export GOARCH="riscv64" ;;
|
|
|
|
*) export GOARCH="unsupported";;
|
|
|
|
esac
|
2021-11-30 21:44:44 +00:00
|
|
|
|
2023-01-10 19:13:33 +00:00
|
|
|
build() {
|
|
|
|
export GOPATH="$srcdir/go"
|
|
|
|
export LDFLAGS="$LDFLAGS -X main.version=$pkgver"
|
|
|
|
yarn --cwd ui
|
|
|
|
yarn --cwd ui build
|
|
|
|
go build ./cmd/rmfakecloud
|
2021-11-30 21:44:44 +00:00
|
|
|
}
|
|
|
|
|
2023-01-10 19:13:33 +00:00
|
|
|
check() {
|
2021-11-30 21:44:44 +00:00
|
|
|
export GOPATH="$srcdir/go"
|
2023-01-10 19:13:33 +00:00
|
|
|
make test testgo testui
|
2021-11-30 21:44:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-01-10 19:13:33 +00:00
|
|
|
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
|
2021-11-30 21:44:44 +00:00
|
|
|
}
|
|
|
|
sha512sums="
|
2024-01-15 17:47:49 +00:00
|
|
|
2836364ba7a0c70b33f5914e357a87fb681275268a1cd5e1b6eba91037017c57f6a24b1bcecf9daa423c2588128ce591c2066d8af1d89eedccca231d24671748 rmfakecloud-0.0.17.tar.gz
|
2023-01-10 19:13:33 +00:00
|
|
|
d5677cef282085cd6642a034dd258ffa294862aeb0ce81d6485a524a15564849bc4eb90a9d1fa4dbcf4eab69dcd893302aa06493fc8fad74d69200c2bdf246c0 rmfakecloud.conf
|
|
|
|
891d0945886796132f951293e081046334857563b4ebae28a3aa5b6bc37768767c49ce102de645ed8340af2518de606be8bf6ecafeb6d189dd937970aa3e6498 rmfakecloud.openrc
|
2021-11-30 21:44:44 +00:00
|
|
|
"
|