You are not logged in.

#1 2007-10-24 01:35:38

drag0nl0rd
Package Maintainer (PM)
From: Czech Republic
Registered: 2007-10-24
Posts: 127
Website

cuyo binary goes with makepkg to /usr/games instead of /usr/bin

Hi,
I'm trying to write PKGBUILD for the game Cuyo. In the final package, the binary goes always to /usr/games instead of /usr/bin. I'm pretty new to this and I can't figure out, how to change it sad Can anyone tell me, or give an advice? Thanx

-------------------------PKGBUILD-----------------------
pkgname=cuyo
pkgver=2.1.0beta1
pkgrel=1
pkgdesc="Cuyo is a Tetris-style puzzle game for up to two players with a twist"
arch=(i686)
url="http://www.karimmi.de/cuyo/"
license=('GPL')
groups=()
depends=('sdl_mixer' 'sdl_image')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(http://download.savannah.gnu.org/releases/cuyo/$pkgname-2.~-1.0~beta1.tar.gz)
noextract=()
md5sums=('2c49f8b2111be4bdd86163b2be4a9485')


build() {
  cd "$startdir/src/$pkgname-2.~-1.0~beta1"

  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="$startdir/pkg" install
}
---------------------------------------------------

Offline

#2 2007-10-24 06:39:35

dir
Member
From: dotph
Registered: 2007-10-10
Posts: 20

Re: cuyo binary goes with makepkg to /usr/games instead of /usr/bin

yeah, --bindir=/usr/bin also doesn't work. well you could just mv $startdir/pkg/usr/games to $startdir/pkg/usr/bin.

Offline

#3 2007-10-24 09:08:16

drag0nl0rd
Package Maintainer (PM)
From: Czech Republic
Registered: 2007-10-24
Posts: 127
Website

Re: cuyo binary goes with makepkg to /usr/games instead of /usr/bin

That helped me smile Now its looks like this:

-------------------------PKGBUILD-----------------------
pkgname=cuyo
pkgver=2.1.0beta1
pkgrel=1
pkgdesc="Cuyo is a Tetris-style puzzle game for up to two players with a twist"
arch=(i686)
url="http://www.karimmi.de/cuyo/"
license=('GPL')
groups=()
depends=('sdl_mixer' 'sdl_image')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(http://download.savannah.gnu.org/releases/cuyo/$pkgname-2.~-1.0~beta1.tar.gz)
noextract=()
md5sums=('2c49f8b2111be4bdd86163b2be4a9485')

build() {
  cd "$startdir/src/$pkgname-2.~-1.0~beta1"

  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="$startdir/pkg" install
  mkdir $startdir/pkg/usr/bin
  mv $startdir/pkg/usr/games/$pkgname $startdir/pkg/usr/bin
  rm -r $startdir/pkg/usr/games
 
}
---------------------------------------------------

Can someone more experienced in this please tell me, if it's right and clean way or not?
Thanx anyway smile)

Offline

#4 2007-10-24 12:20:46

dir
Member
From: dotph
Registered: 2007-10-10
Posts: 20

Re: cuyo binary goes with makepkg to /usr/games instead of /usr/bin

You don't need to create a /usr/bin directory, just mv /usr/games to /usr/bin and its all set. Also, you don't have to put these lines if you don't need them:

makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=

Offline

#5 2007-10-24 13:05:12

drag0nl0rd
Package Maintainer (PM)
From: Czech Republic
Registered: 2007-10-24
Posts: 127
Website

Re: cuyo binary goes with makepkg to /usr/games instead of /usr/bin

Ok, my mistake. I forget to erase the old directory tree and thought, it doesn't work with 'mv'. So, the last version, maybe smile
-------------------------PKGBUILD-----------------------
pkgname=cuyo
pkgver=2.1.0beta1
pkgrel=1
pkgdesc="Cuyo is a Tetris-style puzzle game for up to two players with a twist"
arch=(i686)
url="http://www.karimmi.de/cuyo/"
license=('GPL')
depends=('sdl_mixer' 'sdl_image')
source=(http://download.savannah.gnu.org/releases/cuyo/$pkgname-2.~-1.0~beta1.tar.gz)
md5sums=('2c49f8b2111be4bdd86163b2be4a9485')

build() {
  cd "$startdir/src/$pkgname-2.~-1.0~beta1"

  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="$startdir/pkg" install
  mv $startdir/pkg/usr/games $startdir/pkg/usr/bin
 
}
---------------------------------------------------

dir: thanks for your patience smile and help

Offline

Board footer

Powered by FluxBB