You are not logged in.

#1 2026-05-04 14:16:12

Wild Penguin
Member
Registered: 2015-03-19
Posts: 390

A new package for The Last Eichhof

Hi,

I made a new package for this game (well, Allegro4 port from 2014 - and the original from 1993!).

I've never made a PKGBUILD. Any issues or oversights I should fix before submitting to the AUR?

# Maintainer: Ville Aakko <ville.aakko <AT> kapsi.fi>

pkgname="thelasteichhof"
pkgver="2.1W"
pkgrel=1

pkgdesc="The Last Eichhof, a game from 1993, Allegro4 port"

url="https://gitea.com/WildPenguin/TheLastEichhof/"

license=("GPL-3.0-or-later")

arch=('x86_64')

depends=('allegro4')

source=("https://gitea.com/WildPenguin/TheLastEichhof/archive/v${pkgver}.tar.gz")

sha256sums=('ed732c1e229ae26263d4ea7b0803d625b3c212361062d3081da85da531f9734f')

build() {
  cd "$srcdir/$pkgname"
  aclocal
  automake --add-missing
  autoconf
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir/" install
}

Cheers!

EDIT: I've added the license file, the README.md from the repo and made a small fix (I used sprintf in ways one is not supposed to). Feel free to try this, it's a blast from the past! https://aur.archlinux.org/packages/thelasteichhof

Last edited by Wild Penguin (2026-05-04 17:00:34)

Offline

#2 2026-05-05 08:49:11

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,955

Re: A new package for The Last Eichhof

You gave us very little time to respond before submitting it to AUR.

pkgdesc shouldn't include the name of the package. Something like 'eliminate competitors by shooting beer bottles, based on orginal game from 1993' would be better.

aclocal / automake & autoconf make changes to the source files and should be used in prepare() instead of build()


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-05-05 13:58:04

Wild Penguin
Member
Registered: 2015-03-19
Posts: 390

Re: A new package for The Last Eichhof

Lone_Wolf,

Thanks for the input.

Sorry for being a bit hasty! I'm a bit new to this.

I made the change and moved these to prepare().

Namcap is complaining about non-unique source name, which I can see, is obviously not that sane. I don't know why gitea (and github...) don't put a name to the file automatically. As I'm also the "upstream" I can definitely change this, too.

Offline

#4 Yesterday 10:32:21

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,955

Re: A new package for The Last Eichhof

Looks good, one minor nitpick:

license=("GPL-3.0-or-later")
https://wiki.archlinux.org/title/PKGBUILD#license wrote:

For common licenses (like GPL-3.0-or-later), package licenses delivers all the corresponding files. The package is installed by default, as it is a dependency of base meta package, and the files may be found in /usr/share/licenses/spdx/

Keep LICENSE.GPL in the upstream source, but you don't have to install it in package() .


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

Board footer

Powered by FluxBB