You are not logged in.
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 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
yeah, --bindir=/usr/bin also doesn't work. well you could just mv $startdir/pkg/usr/games to $startdir/pkg/usr/bin.
Offline
That helped me 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 )
Offline
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
Ok, my mistake. I forget to erase the old directory tree and thought, it doesn't work with 'mv'. So, the last version, maybe
-------------------------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 and help
Offline