You are not logged in.

#1 2026-07-13 18:19:26

dcampbell24
Member
From: South Portland, ME, USA
Registered: 2026-07-13
Posts: 5
Website

Hnefatafl Copenhagen 6.1.1 Released to the AUR

You can install the game via

yay -S hnefatafl-copenhagen

The game is kind of like Chess or Go and has related versions going back a long time. Once installed, you can find the game under Games from your application menu or run it via hnefatafl-client. The main site is https://hnefatafl.org. Feedback welcome.

Offline

#2 2026-07-14 12:41:44

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,242

Re: Hnefatafl Copenhagen 6.1.1 Released to the AUR

The changelog shows many changes with the same commit message .
example : the last 8 commits all use "Update the AUR package."

The commit message 'Release version 5.3.0-number " which occurs multiple times is equllay bad.

All those commit messages do is inform there have been change but that's already known because there are commits .

Please use commit messages that make clear what changed .

Moderator Note
moving to AUR Issues, Discussion & PKGBUILD Requests


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2026-07-14 16:48:10

dcampbell24
Member
From: South Portland, ME, USA
Registered: 2026-07-13
Posts: 5
Website

Re: Hnefatafl Copenhagen 6.1.1 Released to the AUR

Thanks for the note about the commits. I added a commit to explain the latest change with a link to my 'CHANGELOG.md' file.

Last edited by dcampbell24 (2026-07-14 16:48:49)

Offline

#4 2026-07-14 21:42:02

loqs
Member
Registered: 2014-03-06
Posts: 18,976

Re: Hnefatafl Copenhagen 6.1.1 Released to the AUR

provides=("hnefatafl-copenhagen")
conflicts=("hnefatafl-copenhagen")

A package always provides itself and a package conflicting with itself makes no sense.

makedepends=("base-devel" "clang" "llvm" "mold" "rustup" "wget")

base-devel is an implicit make dependency of every PKGBUILD and should not be specified. Is mold actually being used? Nothing in the PKGBUILD sets that as the linker.

    tar -xvzf v$pkgver-$real_pkgrel.tar.gz

This is redundant as makepkg will extract all compressed sources unless they are listed in the noextract array.

    sed -i 's/cargo-/arch-/' src/lib.rs;

Should probably be in prepare(). Also the cargo package guidelines are not being followed so everything is downloaded in build().

    gzip --no-name --best taflzero.1
    gzip --no-name --best hnefatafl-server.1
    gzip --no-name --best hnefatafl-server-full.1
    gzip --no-name --best hnefatafl-text-protocol.1
    gzip --no-name --best hnefatafl-client.1

makepkg will compress manpages itself so this is redundant?

    wget https://codeberg.org/dcampbell/hnefatafl/media/branch/main/default_nn.onnx

Why is the neural network not in the sources array?

Offline

#5 2026-07-15 00:41:03

dcampbell24
Member
From: South Portland, ME, USA
Registered: 2026-07-13
Posts: 5
Website

Re: Hnefatafl Copenhagen 6.1.1 Released to the AUR

Thanks, fixed.

The file '.cargo/.config.toml' sets mold as the linker.

I don't know how to avoid doing the sed lines that I have. For the first one I want to set the 'SOFTWARE_ID' to be 'arch' instead of 'cargo' and for the next three the hard coded path is wrong because Debian handles packages differently. I am the upstream code creator for this project, so I could change the code if there was a solution.

When I removed the compression of the man pages I could not find the compressed versions.

Offline

#6 2026-07-15 01:59:36

loqs
Member
Registered: 2014-03-06
Posts: 18,976

Re: Hnefatafl Copenhagen 6.1.1 Released to the AUR

dcampbell24 wrote:

I don't know how to avoid doing the sed lines that I have. For the first one I want to set the 'SOFTWARE_ID' to be 'arch' instead of 'cargo' and for the next three the hard coded path is wrong because Debian handles packages differently. I am the upstream code creator for this project, so I could change the code if there was a solution.

Moving them to prepare is what I meant. I should have been clearer about the next bit. Can you not follow Rust package guidelines Prepare at least with respect to having cargo download crates in prepare rather than build.

dcampbell24 wrote:

When I removed the compression of the man pages I could not find the compressed versions.

    install -Dm644 "taflzero.1" "$pkgdir/usr/share/man/man1/hnefatafl-ai.1"
    install -Dm644 "hnefatafl-client.1" "$pkgdir/usr/share/man/man1/hnefatafl-client.1"
    install -Dm644 "hnefatafl-server.1" "$pkgdir/usr/share/man/man1/hnefatafl-server.1"
    install -Dm644 "hnefatafl-server-full.1" "$pkgdir/usr/share/man/man1/hnefatafl-server-full.1"
    install -Dm644 "hnefatafl-text-protocol.1" "$pkgdir/usr/share/man/man1/hnefatafl-text-protocol.1"

For me produces:

hnefatafl-copenhagen /usr/share/man/man1/hnefatafl-ai.1.gz
hnefatafl-copenhagen /usr/share/man/man1/hnefatafl-client.1.gz
hnefatafl-copenhagen /usr/share/man/man1/hnefatafl-server-full.1.gz
hnefatafl-copenhagen /usr/share/man/man1/hnefatafl-server.1.gz
hnefatafl-copenhagen /usr/share/man/man1/hnefatafl-text-protocol.1.gz

Offline

#7 2026-07-15 04:35:39

dcampbell24
Member
From: South Portland, ME, USA
Registered: 2026-07-13
Posts: 5
Website

Re: Hnefatafl Copenhagen 6.1.1 Released to the AUR

Oh Okay, I implemented your suggestions.

Offline

#8 2026-07-15 12:44:51

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,242

Re: Hnefatafl Copenhagen 6.1.1 Released to the AUR

    ./target/release/examples/taflzero --man --username ""
    ./target/release/hnefatafl-client --man
    ./target/release/hnefatafl-server --man
    ./target/release/hnefatafl-server-full --man
    ./target/release/hnefatafl-text-protocol --man

Are those needed to extract the man pages from the tools ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2026-07-15 17:05:10

dcampbell24
Member
From: South Portland, ME, USA
Registered: 2026-07-13
Posts: 5
Website

Re: Hnefatafl Copenhagen 6.1.1 Released to the AUR

Yeah, that is using clap_mangen (https://docs.rs/clap_mangen/0.3.0/clap_mangen/#example). Here I am using a flag to generate the man pages. The man pages basically mirror the command line help.

Offline

Board footer

Powered by FluxBB