summaryrefslogtreecommitdiffstats
path: root/testing/qt-creator/APKBUILD
blob: 5dd9a91cfd74dddd08ec38a70a485be2e4ba603c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt-creator
pkgver=2.5.2
pkgrel=2
pkgdesc="Lightweight and cross-platform IDE for Qt"
url="http://developer.qt.nokia.com/wiki/Category:Tools::QtCreator"
arch="all"
license="LGPLv2 with exceptions"
depends=""
depends_dev=""
makedepends="$depends_dev qt-dev qt-private-dev paxctl"
install=""
subpackages=""
ldpath="/usr/lib/qtcreator:/usr/lib/qtcreator/plugins/Nokia"
source="http://get.qt.nokia.com/qtcreator/qt-creator-$pkgver-src.tar.gz
	qtcreator.desktop"

_builddir="$srcdir"/qt-creator-$pkgver-src
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	qmake -r IDE_LIBRARY_BASENAME=lib || return 1
	make CXX="${CXX:-g++}"
}

package() {
	cd "$_builddir"
	make install INSTALL_ROOT="$pkgdir"/usr || return 1
	paxctl -cm "$pkgdir"/usr/bin/qtcreator \
		"$pkgdir"/usr/bin/qmlpuppet || return 1
	install -Dm 644 "$srcdir"/qtcreator.desktop \
		"$pkgdir"/usr/share/applications/qtcreator.desktop
}

md5sums="4a9c09cdf4609753283c31451c84ceb8  qt-creator-2.5.2-src.tar.gz
f8b1f18e8d62cd4734bb676a97cee1dc  qtcreator.desktop"