Two issues:
1) The `package()` function was missing (as @iraliaf and @masoud point out), so I fixed it.
2) The `gcc` dependency was missing (to be able to build it!) so I added it.
Here's my latest working version: http://pastebin.com/raw.php?i=FGGWbU4a
Search Criteria
Package Details: netrek-client-cow 3.3.0-1
Package Actions
| Package Base: | netrek-client-cow |
|---|---|
| Description: | A multi-player battle simulation with a Star Trek theme. |
| Upstream URL: | http://www.netrek.org/ |
| Category: | games |
| Licenses: | |
| Submitter: | Gitus |
| Maintainer: | Gitus |
| Last Packager: | None |
| Votes: | 6 |
| First Submitted: | 2009-09-03 23:43 |
| Last Updated: | 2012-11-28 11:21 |
Dependencies (5)
Required by (0)
Sources
Latest Comments
Comment by josefnpat
Comment by iraliaf
I receive the same error when trying to download through yaourt, masoud.
Comment by masoud
A simple makepkg fails with this error:
==> ERROR: Missing package() function in PKGBUILD
Comment by gandalf3
The .desktop is not pointing to the binary properly for me..
Comment by Gitus
thank you
Comment by josefnpat
Here's the version of the PKGBUILD with my updates; http://pastebin.com/raw.php?i=hpN6ueqj
Comment by josefnpat
It looks like netrek.org is no longer hosting 3.3.0 anymore, and in the COW folder, I didn't find anything newer.
From the looks of it, the newest version of the cow client is actually on launchpad, and not always on netrek.org.
I would suggest changing the source from
source=("http://www.netrek.org/files/COW/$pkgname-$pkgver.tar.gz")
to
source=("https://launchpad.net/netrek-client-cow/${pkgver%.*}/$pkgver/+download/$pkgname-$pkgver.tar.gz")
And it properly builds.
Also an aside, why does this install to /usr/bin/cow and not /usr/bin/netrek-client-cow?
`/usr/local/games/netrek-client-cow` Doesn't execute from cli.
Comment by Gitus
thx
Comment by archtux
PKGBUILD for 3.3.0 : http://pastebin.com/UkTeD3nY
Comment by rjrjr
Fails to build on my system:
make -f system.mk KEYDEF=sample_key.def netrek-client-cow
make[1]: Entering directory `/tmp/yaourt-tmp-roger/aur-netrek-client-cow/src/netrek-client-cow-3.2.8'
gcc -g -Wall -DRSA -o mkkey mkkey.c -lgmp -lXpm -lX11 -lnsl -lm -L/usr/lib -lSDL -lpthread -lSDL_mixer -lXxf86vm -lImlib2
mkkey.c:84:16: fatal error: mp.h: No such file or directory
compilation terminated.
make[1]: *** [mkkey] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-roger/aur-netrek-client-cow/src/netrek-client-cow-3.2.8'
make: *** [netrekI] Error 2
Aborting...
Comment by unhammer
I get:
…
configure: creating ./config.status
config.status: creating system.mk
config.status: creating key.mk
config.status: creating config.h
make -f system.mk KEYDEF=sample_key.def netrek-client-cow
make[1]: Entering directory `/tmp/yaourt-tmp-kiwibird/aur-netrek-client-cow/src/netrek-client-cow-3.2.8'
gcc -g -Wall -DRSA -o mkkey mkkey.c -lgmp -lXpm -lX11 -lnsl -lm -L/usr/lib -lSDL -lpthread -lSDL_mixer -lXxf86vm -lImlib2
mkkey.c:84:16: fatal error: mp.h: No such file or directory