You are not logged in.

#1 2010-03-02 21:07:28

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Icebreaker installs fine, but chowning in program's Makefile?! [SOLVD]

I'm writing a PKGBUILD for icebreaker, which is a clone of Jezzball that only uses SDL and SDL mixer (didn't find this in the AUR). Here's the PKGBUILD so far:

# Contributor: ShadowKyogre <shadowkyogre@writing.com>
pkgname=icebreaker
pkgver=1.2.1
pkgrel=1
pkgdesc="A clone of Jezzball that uses icebergs and penguins. (non-theme support version)"
arch=(any)
url="http://mattdm.org/icebreaker/"
license=('GPL')
depends=('sdl' 'sdl_mixer')
source=(http://mattdm.org/$pkgname/1.2.x/$pkgname-$pkgver.tgz)
md5sums=('9453119cf3342a8828e4805c0c49be50')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  make highscoredir=$pkgdir/var/lib/games prefix=$pkgdir/usr || return 1
  make prefix=$pkgdir/usr install highscoredir=$pkgdir/var/lib/games || return 1
}

# vim:set ts=2 sw=2 et:

It stops right here when I run makepkg -s:

touch /home/shadowkyogre/pkgs/pkgbuilds/icebreaker/pkg/var/lib/games/icebreaker.scores
chown games:games /home/shadowkyogre/pkgs/pkgbuilds/icebreaker/pkg/var/lib/games/icebreaker.scores
chown: invalid user: `games:games'

However, the binary runs fine without games:games (the binary writes directly to this file...and it's specified in the makefile to chown that directory).  Are there any other packages in the AUR that involve chowning to things llike games:games (even though we don't have a games user)? The current solution seems to be editing the makefile to chown to root:games or finding a way to do that in the PKGBUILD.

Last edited by ShadowKyogre (2010-03-06 06:59:25)


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#2 2010-03-06 06:59:07

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: Icebreaker installs fine, but chowning in program's Makefile?! [SOLVD]

Solved the issue by editing the chowning bit to root:games. High scores will display as normal now. I'll put it on the AUR now.


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

Board footer

Powered by FluxBB