You are not logged in.

#1 2008-03-18 12:52:43

dabski
Member
Registered: 2008-02-07
Posts: 101
Website

[SOLVED] makepkg leaves out pkg/usr/bin

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 sad. 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

#2 2008-03-18 14:09:07

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [SOLVED] makepkg leaves out pkg/usr/bin

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

#3 2008-03-18 15:31:06

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [SOLVED] makepkg leaves out pkg/usr/bin

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

#4 2008-03-18 17:49:04

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: [SOLVED] makepkg leaves out pkg/usr/bin

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

#5 2008-03-18 22:53:54

dabski
Member
Registered: 2008-02-07
Posts: 101
Website

Re: [SOLVED] makepkg leaves out pkg/usr/bin

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

#6 2008-03-19 11:03:47

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: [SOLVED] makepkg leaves out pkg/usr/bin

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

#7 2008-03-19 11:35:20

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] makepkg leaves out pkg/usr/bin

You can also use pacman to check your package's file list before install.

Offline

Board footer

Powered by FluxBB