You are not logged in.
# $Id: PKGBUILD,v 1.12 2003/11/06 08:26:13 dorphell Exp $
# Maintainer:Tutku Dalmaz <tutkudalmaz>>
pkgname=loosecannon
pkgver=0.5.0
pkgrel=1
pkgdesc="Loose Cannon is 3D 3rd person action adventure game."
url="http://sourceforge.net/projects/loose-cannon/"
licence="GPL"
depends=('openal')
source=("http://belnet.dl.sourceforge.net/sourceforge/loose-cannon/$pkgname-$pkgver.tar.gz")
md5sums=('7ec489f393295c88f9ef4b3f9d0d2c52')build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install}
this is my first PKGBUILD, i have written these but when i start with makepkg, after a while it gives me
make[2]: Entering directory `/home/titus/src/loosecannon/src/loosecannon-0.5.0'
make[2]: Nothing to be done for `install-exec-am'.
cp -r share/loosecannon /usr/share/
cp: cannot create directory `/usr/share/loosecannon': Permission denied
how can i correct this.
In a world without walls,who need windows?
Offline
Check the permissions for the dir.
Offline
i type #makepkg as root why i got the permission error?
In a world without walls,who need windows?
Offline
your pkgbuild works for me. i copied it to /var/abs/local/loosecannon/PKGBUILD.
btw: freealut is another dependancy for this game
Offline
thanks lot IsSuE and i have a question, my quote which starts with make[2], is an error or just a warning?
In a world without walls,who need windows?
Offline
make[2]: Entering directory `/home/titus/src/loosecannon/src/loosecannon-0.5.0'
make[2]: Nothing to be done for `install-exec-am'.
This is just information.
cp -r share/loosecannon /usr/share/
cp: cannot create directory `/usr/share/loosecannon': Permission denied
This is bad. It tries to install files directly in the filesystem. Most likely, the package contains no files. The PKGBUILD needs to be fixed. If I have time, I'll give it a look.
You should never run makepkg as root. Always use fakeroot under a regular user. If you try to use a bad PKGBUILD like this one, it will mess up your system.
Offline
thanks snowman i'll be waiting your answers
In a world without walls,who need windows?
Offline
snowman i scan all INSTALL file of loosecannon game and i changed some part of my PKGBUILD and when i type makepkg
now there is ne persmission denied warning but instead of it
cp -r share/loosecannon /usr/share/
part still exist.
i thing something still has problem, am i right?
In a world without walls,who need windows?
Offline
try using $startdir/pkg/usr as prefix for ./configure
like this :
./configure --prefix=$startdir/pkg/usr
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
try using $startdir/pkg/usr as prefix for ./configure
like this :
./configure --prefix=$startdir/pkg/usr
This should be avoid because sometime the paths that are passed to the configure script are hardcoded in the app.
Here's the fixed PKGBUILD:
# Contributor:Tutku Dalmaz <tutkudalmaz>
pkgname=loosecannon
pkgver=0.5.0
pkgrel=1
pkgdesc="Loose Cannon is 3D 3rd person action adventure game."
url="http://sourceforge.net/projects/loose-cannon/"
licence="GPL"
depends=('python' 'mesa' 'sdl_image' 'freealut')
source=("http://dl.sourceforge.net/sourceforge/loose-cannon/$pkgname-$pkgver.tar.gz")
md5sums=('7ec489f393295c88f9ef4b3f9d0d2c52')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
install -d $startdir/pkg/usr/share
make DESTDIR=$startdir/pkg datadir=$startdir/pkg/usr/share install
chmod 644 $startdir/pkg/usr/share/loosecannon/snds/hover.wav
}
These kinds of problems are usually solved by looking at the Makefile. Some Makefiles don't use the DESTDIR variable for the installation location. The variable has another name like prefix, PREFIX, INSTALL_ROOT, etc or the Makefile is broken like in this case. It use DESTDIR for the executable but not for the data:
cp -r share/loosecannon $(datadir)/
. So I gave it the wanted datadir path, completed depends, etc.
Offline
thanks for your help snowman this pkgbuild is gonna be my tutorial.
In a world without walls,who need windows?
Offline