You are not logged in.

#1 2015-06-07 20:52:37

Warezovvv
Member
Registered: 2015-06-07
Posts: 18

PKGBUILD in Qt project

Hello everybody. I wanna create own package.
so i have folders /src and PKGBUILD
/src contain *.h *.cpp .pro, deployment.pri
Now i have PKGBUILD with that

# Maintainer: 
# Contributor: 
pkgname=chess
pkgver=0.1
pkgrel=0
pkgdesc="For curs project"
arch=(i686 x86_64)
url="no url"
license="GPL"
groups=
provides=Warezovvv
depends=('qt5-base')
makedepends=('')
#backup=('etc/chess/chess.conf')
#install=('chess.install')
#source=(http://www.foo.org/download/$pkgname-$pkgver.tar.gz)
#md5sums=('2c0cca3ef6330a187c6ef4fe41ecaa4d35175bee593a7cc7d6205584a94d8625')

package() {
  cd $startdir/src
  qmake -o Makefile Chess.pro
  make || return 1
  make  DESTDIR=$startdir/pkg install
} 

But it generates empty /pkg directory and empty (2 files) tat.gz package.
How can i generate only binary output in my package.
Thanks!!!

Offline

#2 2015-06-08 04:37:40

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,575

Re: PKGBUILD in Qt project

I think you're using an ancient template. A few necessary changes: building should be done in the build function, || return 1 hasn't been needed for years, and you should NEVER use $startdir/pkg.

Offline

#3 2015-06-09 19:55:29

AbaddonOrmuz
Member
Registered: 2014-07-05
Posts: 43
Website

Re: PKGBUILD in Qt project

You don't need DESTDIR but INSTALL_ROOT in Qt packages, and qmake and first make command should be in the build() function.

You may want to read the wiki. For example:

- https://wiki.archlinux.org/index.php/Ar … _standards

Offline

Board footer

Powered by FluxBB