1 # Contributor: PyrO_70 <brieuc.roblin@gmail.com>
2 pkgname=libqextserialport-hg
5 pkgdesc="Cross-platform serial port class libary for Qt4."
7 url="http://code.google.com/p/qextserialport/"
10 makedepends=(make gcc mercurial)
11 provides=(libqextserialport)
13 _hgrepo="qextserialport"
14 _hgroot="https://qextserialport.googlecode.com/hg/"
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..."
26 echo "DESTDIR=${pkgdir}/usr/lib" >> src/src.pro
28 make sub-src || return 1
32 mkdir -p "$pkgdir"/usr/include
33 install -D -m644 src/*.h "$pkgdir"/usr/include