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
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.
]]> 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.
]]>#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:
]]>