You are not logged in.
Hi,
I'm trying to make a PKGBUILD of The Goonies for my first PKGBUILD to add to the AUR. The problem is that makepkg dose not add the pkg/usr/bin directory and I can not figure out why . Can someone please show me what I am doing wrong I have been sitting here for hours trying to get this to work.
# Contributor: Benjamin Debski <benjamin.debski@gmail.com>
pkgname=goonies
pkgver=1.0.1
pkgrel=1
pkgdesc="The Goonies"
arch=('i686')
url="http://goonies.jorito.net/"
license=('unknown')
depends=('sdl' 'sdl_image' 'sdl_mixer')
makedepends=()
source=(http://goonies.jorito.net/download/goonies_r1-0-1.tgz)
md5sums=(1b949eda5cc57ebe2cb95ede67bfb467)
build() {
cd $startdir/src/goonies_r1-0-1/src
mv $startdir/src/goonies_r1-0-1/build/linux/Makefile .
make || return 1
mkdir -p $startdir/pkg/opt/goonies
cd $startdir/pkg/opt/goonies
mv $startdir/src/goonies_r1-0-1/graphics .
mv $startdir/src/goonies_r1-0-1/maps .
mv $startdir/src/goonies_r1-0-1/sound .
mv $startdir/src/goonies_r1-0-1/src/goonies .
mkdir -p $startdir/pkg/usr/bin
cd $startdir/pkg/usr/bin
echo -e "cd /opt/goonies;" > goonies
echo -e "./goonies;" >> goonies
chmod +x goonies
}
Last edited by dabski (2008-03-18 23:10:35)
Offline
I'm not sure what's wrong - I use the same PKGBUILD and I get a $startdir/pkg/usr/bin created, and it's in the final package.
What's your makepkg.conf look like?
Offline
two other things to check:
- do you have write permission for the directory that you are building in?
- does that directory has a space (or other symbol) in its path?
Offline
I find it odd that this line works:
mkdir -p $startdir/pkg/opt/goonies
but this one doesn't:
mkdir -p $startdir/pkg/usr/bin
when they're really exactly the same thing. Is the first folder correctly being made?
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
Hah I just found out the problem I opened the package in Xarchiver and I can see the usr folder now! I'm using XFCE which has Squeeze as the default compression tool which for some reason did not show the usr/bin folder... very strange.
Offline
to eliminate such bottlenecks always rely on terminal tools, like tar. I always have this problem with creating archives with KArchive where it will error out but the archiving process would be a success.
Last edited by schivmeister (2008-03-19 11:04:38)
I need real, proper pen and paper for this.
Offline
You can also use pacman to check your package's file list before install.
Offline