You are not logged in.

#1 2009-10-13 15:53:14

meijin
Member
From: Israel
Registered: 2009-03-05
Posts: 95

Bilding a pkgbuild - fakeroot problam

hi all
i am trying to build my first pkgbuild (my first time...) , but i am having some problems with it.
in the stage where it trying to do "make install" it dosent enter the fakeroot env. and dosent work...
the code is:

pkgname=luach
pkgver=0.01
pkgrel=1
pkgdesc="Hebrew calander using Qt4 library"
arch=('i686' 'x86_64') 
url="http://code.google.com/p/luach/"
license=('GPL2')
depends=('qt>=4.0' 'libhdate')
source=(http://luach.googlecode.com/files/Luach-0.01.tar.gz)
md5sums=(fb9ec8c78c6571a5069eee899c06a22b) #generate with MD5sum

build() {
  cd "$srcdir/Luach"

  qmake
  make
  make DESTDIR="$pkgdir/pkg" install
}

thank you!
Assaf

Offline

#2 2009-10-13 16:07:26

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,425
Website

Re: Bilding a pkgbuild - fakeroot problam

makepkg will enter fakeroot before it runs the build() function.  Can you post the build output showing us your problem?

Offline

#3 2009-10-13 17:19:23

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: Bilding a pkgbuild - fakeroot problam

meijin wrote:

in the stage where it trying to do "make install" it dosent enter the fakeroot env. and dosent work...

It fails because of a wrong installation prefix, not because of fakeroot.  Use INSTALL_ROOT instead of DESTDIR (the extra /pkg is also wrong, although it's not the cause of the error):

make INSTALL_ROOT="$pkgdir" install

Note: they install stuff to /usr/local.  I'm not very familiar with the qmake system, so the only way I know to fix it is to manually sed the *.path vars in the Luach.pro file.

Last edited by tdy (2009-10-13 17:27:47)

Offline

Board footer

Powered by FluxBB