You are not logged in.

#1 2004-03-05 21:05:39

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Makepkg troubles

#Contributor: Lukas Sabota <punkrockguy318@comcast.net>
pkgname=armagetron
pkgver=0.2.5.2
pkgrel=3
pkgdesc="A Tron clone in 3d"
url="http://armagetron.sourceforge.net"
depends=(sdl_image sdl sdl_mixer)
source=(http://heanet.dl.sourceforge.net/sourceforge/armagetron/armagetron-0.2.5.2.tar.gz)
md5sums=(99bb6761c3791653762aa3135c51a646)

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install
}

Every time I install the package this makes, I just get an empty package!! What's wrong?  :evil:


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#2 2004-03-05 21:51:13

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Makepkg troubles

likely the files are getting installed directly to your system change

 make prefix=$startdir/pkg/usr install 

to

 make DESTDIR=$startdir/pkg install

i strongly recommend installing fakeroot and enabling fakeroot for makepkg. this way you can build as user but if any files were to be installed directly to your system it would fail. from there you troubleshoot why the build is failing while at the same time you are NOT accidentally installing files to your system.


AKA uknowme

I am not your friend

Offline

#3 2004-03-05 22:01:32

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: Makepkg troubles

I tried DESTDIR also:  It's not working!  It keeps installing into /usr/bin/games no matter what!  Weird!


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#4 2004-03-05 22:04:23

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: Makepkg troubles

I can't pass install dir to make in line
make install
The Makefile includes an external script to install, my guess is that is the reason.

I can make the package with this:

./configure --prefix=$startdir/pkg/usr --disable-etc
make || return 1
make install

I didn't try to install and run it yet.

Offline

#5 2004-03-05 22:19:42

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: Makepkg troubles

No, forget what I wrote, it doesn't work. The install path should be passed to "make install", not to configure.

A not so very nice way would be to patch src/armagetron-0.2.5.2/bindist/install and appropriately change the line
INSTALL=/usr/games/armagetron
like:

./configure --prefix=/usr --disable-etc 
make || return 1
patch bindist/install patch_file
make install

Offline

Board footer

Powered by FluxBB