updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libqextserialport-hg / PKGBUILD
blobb1164bf1b34d6d022b0cc31f0f6a22337553835e
1 # Contributor: PyrO_70 <brieuc.roblin@gmail.com>
2 pkgname=libqextserialport-hg
3 pkgver=105
4 pkgrel=1
5 pkgdesc="Cross-platform serial port class libary for Qt4."
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/qextserialport/"
8 license="BSD"
9 depends=(qt)
10 makedepends=(make gcc mercurial)
11 provides=(libqextserialport)
13 _hgrepo="qextserialport"
14 _hgroot="https://qextserialport.googlecode.com/hg/"
16 build() {
17         cd ${srcdir}
19         msg "Downloading source using Mercurial..."
20         rm -fr ${_hgrepo} &> /dev/null
21         hg clone ${_hgroot} ${_hgrepo} || return 1
22         msg "Clone done or server timeout"
24         msg "Starting make..."
25         cd ${_hgrepo}
26         echo "DESTDIR=${pkgdir}/usr/lib" >> src/src.pro
27         qmake || return 1
28         make sub-src || return 1
30         # Installing include
31         msg "Installing..."
32         mkdir -p "$pkgdir"/usr/include
33         install -D -m644 src/*.h "$pkgdir"/usr/include