# $Id: PKGBUILD 2013-06-26 GunsNRose $
# Maintainer: GunsNRose <zlbgps AT gmail.com>
# Contributor: GunsNRose <zlbgps AT gmail.com>
pkgname=qcom-git
_pkgname=${pkgname/-git}
pkgver=20130626
pkgrel=1
pkgdesc="QCom is Qt Com debug tool"
arch=('i686' 'x86_64')
url="http://www.qter.org"
license=('GPL3')
#depends=('linux>=3.9' 'linux<3.10')
depends=('qt4')
makedepends=('git')
#install="${_pkgname}.install"
#optdepends=('exfat-utils: utilities for exFAT file system' 'util-linux: to mount exFAT volumes automatically')
_gitroot="http://git.qter.org/repo/${_pkgname}.git"
_gitname="$_pkgname"
build() {
echo "_pkgname = ${_pkgname}"
cd $srcdir
if [ -d $_gitname ]; then
cd $_gitname && git pull origin || return 1
else
git clone $_gitroot || return 1
fi
cd $srcdir/$_gitname
export LC_ALL=C
export LANG=C
qmake-qt4
make || return 1
}
package() {
cd "$srcdir/$_gitname" || return 1
install -D -d -m755 $pkgdir/usr/bin || return 1
install -D -m755 $_pkgname $pkgdir/usr/bin/$_pkgname || return 1
}
转载于:https://blog.51cto.com/axlrose/1287235