aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qextserialport/APKBUILD
blob: a4c2c791033ae41dad97be34c991b1cc3b687f9a (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: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=qextserialport
pkgver=1.2_beta2
_pkgver=1.2beta2
pkgrel=0
pkgdesc="Interface to serial ports for Qt application"
url="http://code.google.com/p/qextserialport/"
arch="all"
license="MIT"
depends=""
depends_dev="qt-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://qextserialport.googlecode.com/files/qextserialport-$_pkgver.tar.gz"

_builddir="$srcdir"/qextserialport-$_pkgver
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
	echo "QEXTSERIALPORT_LIBRARY=yes" > config.pri
}

build() {
	cd "$_builddir"
	qmake && make
}

package() {
	cd "$_builddir"
	make INSTALL_ROOT="$pkgdir" install
}

dev() {
	default_dev
	cd "$pkgdir" || return 1
	mv usr/share $subpkgdir/usr
}

md5sums="813468066ab745d95dff79e5ed4147bd  qextserialport-1.2beta2.tar.gz"