You are not logged in.

#1 2012-07-31 16:53:23

mikkie
Member
Registered: 2009-11-10
Posts: 52

[SOLVED] kbgoffice creating package

So I am trying to create my first package. When I manually run 'qmake -config -release && make clean && make install', the application installs without a problem. But when I try to build a package using a PKGBUILD, after running makepkg the package contains only the ".PKGINFO" and no other files. This is the PKGBUILD file:

# Maintainer:

pkgname=kbgoffice
pkgver=2.1
pkgrel=1
pkgdesc="Bulgarian Dictionary (Qt)"
arch=('i686' 'x86_64')
url=http://bgoffice.sourceforge.net/
license=('GPL2')
depends=('qt')
source=($pkgname-$pkgver.tar.gz::'http://switch.dl.sourceforge.net/project/bgoffice/BG%20Office%20Assistant/2.1/$pkgname-$pkgver.tar.gz')
md5sums=('ec70b750f6cc23a0ad7938fefb614ad8')

build() {
  cd "$srcdir/$pkgname-$pkgver/src"
  qmake -config -release
  make clean
  make DESTDIR="$pkgdir/" install
}

And this is the build output:
http://sprunge.us/ROID

Last edited by mikkie (2012-08-01 21:14:39)

Offline

#2 2012-08-01 16:15:36

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] kbgoffice creating package

2 things :
- the last make command should be in the package() function, not the build() function.

- sometimes the expansion from $pkgdir fails due to special characters in it, try

make DESTDIR="${pkgdir}" install

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2012-08-01 17:02:47

mikkie
Member
Registered: 2009-11-10
Posts: 52

Re: [SOLVED] kbgoffice creating package

Lone_Wolf, thanks for the tips but I didn't have luck. Again there are no files in the created package except for the ".PKGINFO". This is how the PKGBUILD looks now with your suggestions:

# Maintainer:

pkgname=kbgoffice
pkgver=2.1
pkgrel=1
pkgdesc="Bulgarian Dictionary (Qt)"
arch=('i686' 'x86_64')
url=http://bgoffice.sourceforge.net/
license=('GPL2')
depends=('qt')
source=($pkgname-$pkgver.tar.gz::'http://switch.dl.sourceforge.net/project/bgoffice/BG%20Office%20Assistant/2.1/$pkgname-$pkgver.tar.gz')
md5sums=('ec70b750f6cc23a0ad7938fefb614ad8')

build() {
  cd "$srcdir/$pkgname-$pkgver/src"
  qmake -config -release
  make clean
}

package() {
  cd "$srcdir/$pkgname-$pkgver/src"
  make DESTDIR="${pkgdir}" install
}

And this is the build output:
http://sprunge.us/XBQf

Last edited by mikkie (2012-08-01 17:06:19)

Offline

#4 2012-08-01 17:41:51

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] kbgoffice creating package

You don't need make clean, I think.

Offline

#5 2012-08-01 18:18:10

mikkie
Member
Registered: 2009-11-10
Posts: 52

Re: [SOLVED] kbgoffice creating package

x33a wrote:

You don't need make clean, I think.

'make clean' is in the the INSTALL instructions of the application and I successfully built it from source with 'qmake -config -release && make clean && make install'. No luck with creating an Arch package so far though.

Last edited by mikkie (2012-08-01 19:02:11)

Offline

#6 2012-08-01 19:55:23

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

Re: [SOLVED] kbgoffice creating package

If your package is empty like in this case, the issue is the make install line. Check the Makefile to see what variable it uses for the  installation location. DESTDIR is the common name for it but it can have a different name.

Offline

#7 2012-08-01 21:13:45

mikkie
Member
Registered: 2009-11-10
Posts: 52

Re: [SOLVED] kbgoffice creating package

Snowman, thanks a lot! I used INSTALL_ROOT instead of DESTDIR and there are no more problems with the package. Thanks again.

Offline

Board footer

Powered by FluxBB