# Contributor: aleksonik # Contributor: andre.vmatos # Contributor: Valeriy Lyasotskiy # Contributor: gleb.zhulik # Contributor: Greizgh _gitname=qtserialport _gitroot='git://gitorious.org/qt/qtserialport.git' pkgname=qtserialport-git pkgver=20130304 pkgrel=1 pkgdesc="Add-on for the Qt library, providing a single interface for both hardware and virtual serial ports" arch=('i686' 'x86_64') url="http://qt-project.org/wiki/QtSerialPort" license=('GPL') depends=('qt5-base') makedepends=('git') provides=('qtserialport') build() { cd "$srcdir" msg "Connecting to GIT server...." if [[ -d "${_gitname}" ]]; then cd "${_gitname}" && git pull origin msg "The local files are updated." else git clone --depth=1 "${_gitroot}" "${_gitname}" && cd "${_gitname}" msg "GIT checkout done or server timeout" fi pwd sed -i 's/ examples tests//' qtserialport.pro qmake make } package() { cd "${_gitname}" make INSTALL_ROOT="$pkgdir" install }