You are not logged in.

#1 2007-01-07 00:15:27

Izuil
Member
From: Sweden
Registered: 2006-10-07
Posts: 162

Need some help with creating a PKGBUILD

Okey  I've been trying myself all day long and now I feel i gotta ask for help.
I'm trying to create a package myself (QT 4.2.2) and it takes about 2 hours to compile and now after having done that twice without succsess I'm now asking for help.

This is what I have achived:

pkgname=qt
pkgver=4.2.2
pkgrel=1
pkgdesc="The QT gui toolkit."
depends=('libpng' 'libjpeg' 'libxmu' 'libxcursor' 'libxinerama' 'mesa' 'libxft')
source=(ftp://ftp.tu-chemnitz.de/pub/Qt/qt/source/qt-x11-opensource-src-4.2.2.t)
md5sums=('19f6374fe7924e33775cb87ee02669cb')

build() {
  cd $startdir/src/qt-x11-opensource-src-4.2.2
  unset QMAKESPEC
  ./configure -prefix /opt/qt
  make
  make install
}

If you can find any errors please tell me smile It must have some since this is my first package and it's not working...

Well the problem is that when it's done the package is empty, it only contains a .pkginfo and a .filelist and those won't help...

I think this is the problem:

==> Removing info/doc files...
==> Compressing man pages...
==> Stripping debugging symbols from libraries...
==> Stripping symbols from binaries...
==> Generating .PKGINFO file...
==> Generating .FILELIST file...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Compressing package...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Finished making: qt  (Sun Jan  7 00:55:30 CET 2007)

Why does it say: Cannot stat? And what does that mean?
Appreciate all help I can get smile

(When it's done those of you who want to can use this to update your own QT smile not that I could have stopped you anyway but... tongue )

EDIT: Sorry! This should of course go in the pkgbuild section! I guess crossposting isn't allowed so I'll just wait and hope that any admin will move this to it's right spot.

Offline

#2 2007-01-07 00:53:12

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: Need some help with creating a PKGBUILD

pkgname=qt
pkgver=4.2.2
pkgrel=1
pkgdesc="The QT gui toolkit."
depends=('libpng' 'libjpeg' 'libxmu' 'libxcursor' 'libxinerama' 'mesa' 'libxft')
source=(ftp://ftp.tu-chemnitz.de/pub/Qt/qt/source/qt-x11-opensource-src-4.2.2.t)
md5sums=('19f6374fe7924e33775cb87ee02669cb')

build() {
  cd $startdir/src/qt-x11-opensource-src-4.2.2
  unset QMAKESPEC
  ./configure --prefix /opt/qt
  make
  make DESTDIR=$startdir/pkg install
}

or something like that... stat means tar can't find the files in the pkg dir to compress.

Offline

#3 2007-01-07 00:57:25

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Need some help with creating a PKGBUILD

Izuil wrote:

EDIT: Sorry! This should of course go in the pkgbuild section! I guess crossposting isn't allowed so I'll just wait and hope that any admin will move this to it's right spot.

Sure.  8)

Dusty

Offline

#4 2007-01-07 01:17:49

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

Re: Need some help with creating a PKGBUILD

There is already a qt 4 package in the community repo:
pacman -S qt4

Offline

Board footer

Powered by FluxBB