From eb0ab56085077f4431c36d95ada78e8f908fdf24 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Sat, 13 Nov 2021 14:04:04 +0100 Subject: [PATCH] syndicate-server packaging --- packaging/Makefile.internal | 2 ++ .../packages/syndicate-server/.gitignore | 1 + packaging/packages/syndicate-server/APKBUILD | 33 +++++++++++++++++++ .../syndicate-server/sync-binaries.sh | 14 ++++++++ packaging/packages/synit-pid1/APKBUILD | 2 +- 5 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 packaging/packages/syndicate-server/.gitignore create mode 100644 packaging/packages/syndicate-server/APKBUILD create mode 100755 packaging/packages/syndicate-server/sync-binaries.sh diff --git a/packaging/Makefile.internal b/packaging/Makefile.internal index cd524db..5fe9059 100644 --- a/packaging/Makefile.internal +++ b/packaging/Makefile.internal @@ -9,6 +9,8 @@ SIGNING_KEY = $(HOME)/.abuild/$(KEYFILE) PACKAGES = \ squeak-vm.apk \ + syndicate-server.apk \ + synit-pid1.apk \ build: $(PACKAGES) sign diff --git a/packaging/packages/syndicate-server/.gitignore b/packaging/packages/syndicate-server/.gitignore new file mode 100644 index 0000000..12fb65c --- /dev/null +++ b/packaging/packages/syndicate-server/.gitignore @@ -0,0 +1 @@ +buildlog.* diff --git a/packaging/packages/syndicate-server/APKBUILD b/packaging/packages/syndicate-server/APKBUILD new file mode 100644 index 0000000..bb37559 --- /dev/null +++ b/packaging/packages/syndicate-server/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Tony Garnock-Jones +# Maintainer: Tony Garnock-Jones +pkgname=syndicate-server +pkgver=0.14.0 +pkgrel=0 +pkgdesc="Syndicate server" +url="https://syndicate-lang.org/" +arch="all" +license="GPLv3" +depends="" +makedepends="" +source=" +syndicate-server.aarch64 +syndicate-server.armv7 +syndicate-server.x86_64 +" +builddir="$srcdir/" +options="!check" + +build() { + : +} + +package() { + mkdir -p "$pkgdir/usr/bin" + cp -p syndicate-server.${CARCH} "$pkgdir/usr/bin/." +} + +sha512sums=" +3e942f235022a5f7998bd67e9e4fdb926bc7d13ecfbab57279f496724fd6091cf06198d440805ebfe0bc37a2db20d8164b700804885468892a5a71dc25551aea syndicate-server.aarch64 +1f9f2554418037caac3e5a2041a4519e176996119cb277cc7d06c884b7e3f46d576ae7c9822a10cf3ebda3ffcc354f02da985a9156f1b4dc479598a4d008ec1c syndicate-server.armv7 +594ad4f97792317fe550cb1cb5cdcfda4e38034561def0931c39991f84e92afb10ed7cdd351ae44842766ec1aadc5272e32994e9cde15566cf26d9e0046762ec syndicate-server.x86_64 +" diff --git a/packaging/packages/syndicate-server/sync-binaries.sh b/packaging/packages/syndicate-server/sync-binaries.sh new file mode 100755 index 0000000..0fa69d2 --- /dev/null +++ b/packaging/packages/syndicate-server/sync-binaries.sh @@ -0,0 +1,14 @@ +#!/bin/sh +cd "$(dirname "$0")" + +set -e + +build() { + make -C ~/src/syndicate-rs $1-binary-release 2>&1 | tee buildlog.$1 + cp -p ~/src/syndicate-rs/target/$1-*/release/syndicate-server syndicate-server.$1 +} + +build x86_64 & +build armv7 & +build aarch64 & +wait diff --git a/packaging/packages/synit-pid1/APKBUILD b/packaging/packages/synit-pid1/APKBUILD index 775bd58..5f607ad 100644 --- a/packaging/packages/synit-pid1/APKBUILD +++ b/packaging/packages/synit-pid1/APKBUILD @@ -7,7 +7,7 @@ pkgdesc="synit pid 1 program" url="https://synit.org/" arch="all" license="GPLv3" -depends="" +depends="syndicate-server" makedepends="" source=" synit-pid1.aarch64