Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Before running the build, make sure you have all the required dependencies:

* Docker
* bsdtar
* Python 3.10
* Python 3.11

You’ll also need all the Python modules listed in [requirements.txt](../requirements.txt) (install them by running `pip install --user -r requirements.txt` or using a [virtual environment](https://docs.python.org/3/tutorial/venv.html)).

Expand Down
3 changes: 3 additions & 0 deletions package/fuseki/fuseki-runner
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
export GNUGO_BINARY=/opt/bin/gnugo
/opt/bin/fuseki
5 changes: 5 additions & 0 deletions package/fuseki/fuseki-runner.draft
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name=fuseki
desc=Play go
call=/opt/bin/fuseki-runner
term=killall fuseki
imgFile=fuseki
36 changes: 36 additions & 0 deletions package/fuseki/package
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
# Copyright (c) 2025 The Toltec Contributors
# SPDX-License-Identifier: MIT

pkgnames=(fuseki)
pkgdesc="Go frontend using GnuGo"
url="https://github.com/palfrey/fuseki"
pkgver=0.1.0-1
timestamp=2025-08-25T16:56+0100
section=games
maintainer="Tom Parker-Shemilt <palfrey@tevps.net>"
license=AGPL-3.0-or-later
image=rust:v3.3
source=(
https://github.com/palfrey/fuseki/archive/refs/tags/${pkgver%-*}.zip
fuseki-runner.draft
fuseki-runner
)
sha256sums=(
df80c15531ac5bcd18e1af684443454ba29dddacc157c24e0db0eb88e37176d0
SKIP
SKIP
)

installdepends=("gnugo")

build() {
cargo build --release
}

package() {
install -D -m 755 "$srcdir"/target/armv7-unknown-linux-gnueabihf/release/fuseki "$pkgdir"/opt/bin/fuseki
install -D -m 644 "$srcdir"/fuseki-runner.draft "$pkgdir"/opt/etc/draft/fuseki.draft
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/fuseki-runner
install -D -m 644 "$srcdir"/fuseki.png "$pkgdir"/opt/etc/draft/icons/fuseki.png
}
34 changes: 34 additions & 0 deletions package/gnugo/package
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
# Copyright (c) 2025 The Toltec Contributors
# SPDX-License-Identifier: MIT

pkgnames=(gnugo)
pkgdesc="Program that plays the game of Go"
url="https://www.gnu.org/software/gnugo/"
pkgver=3.8.0-1
timestamp=2025-08-25T16:56+0100
section=games
maintainer="Tom Parker-Shemilt <palfrey@tevps.net>"
license=GPL-3.0-only
image=base:v3.1
source=(
https://github.com/palfrey/gnugo/archive/51f99b7a00b7acf295475b56c349c857a9aa2d0e.zip
)
sha256sums=(
2624c57641c7cb28699df693c6da65f6d192f9867554fcfcf830b17db851a702
)

makedepends=("build:autoconf" "build:automake")

build() {
aclocal
autoheader
automake --add-missing --copy
autoreconf
CFLAGS="-O2 -flto=auto" LDFLAGS="-O2 -flto=auto" ./configure --host arm-remarkable-linux-gnueabihf --build x86_64-linux-gnu --without-curses --without-docs
make
}

package() {
install -D -m 755 "$srcdir"/interface/gnugo "$pkgdir"/opt/bin/gnugo
}