You are not logged in.
Pages: 1
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
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
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:
Offline
Pages: 1