aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qt-creator/APKBUILD
blob: 74d4dd8a3131c539603fb6a56623ba210b803182 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt-creator
pkgver=2.5.0
pkgrel=0
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"
install=""
subpackages=""
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=/usr/lib || return 1
	make CXX="${CXX:-g++}"
}

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

md5sums="31e26cdd1e3eeb8c406382ebe886dcc5  qt-creator-2.5.0-src.tar.gz
f8b1f18e8d62cd4734bb676a97cee1dc  qtcreator.desktop"