You are not logged in.
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 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
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
You don't need make clean, I think.
Offline
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
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
Snowman, thanks a lot! I used INSTALL_ROOT instead of DESTDIR and there are no more problems with the package. Thanks again.
Offline