updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mysqltuner-git / PKGBUILD
blob6433f0a210ca3138fe2c0ea1e3ac0622695da8ee
1 # Maintainer: Christian Hesse <mail@eworm.de>
3 pkgname=mysqltuner-git
4 pkgver=20120126
5 pkgrel=1
6 pkgdesc="MySQLTuner - review configuration quickly and make adjustments to increase performance and stability - git checkout"
7 arch=('i686' 'x86_64')
8 url="http://www.mysqltuner.com"
9 license=('GPL')
10 makedepends=('git')
11 depends=('perl')
12 provides=(mysqltuner)
13 conflicts=(mysqltuner)
15 _gitroot="git://github.com/rackerhacker/MySQLTuner-perl.git"
16 _gitname="mysqltuner"
18 build() {
19   cd "${srcdir}"
20   msg "Connecting to GIT server...."
22   if [ -d ${_gitname} ] ; then
23     cd ${_gitname} && git pull origin
24     msg "The local files are updated."
25   else
26     git clone ${_gitroot} ${_gitname}
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "${srcdir}/${_gitname}-build"
33   git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
34   cd "${srcdir}/${_gitname}-build"
36   install -D -m755 mysqltuner.pl ${pkgdir}/usr/sbin/mysqltuner
37   install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/mysqltuner/LICENSE
38   install -D -m644 README ${pkgdir}/usr/share/doc/mysqltuner/README
40 md5sums=()