summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60338f999746c14b8d3563549c68c43fd38c80a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Raphaƫl Doursenaud <rdoursenaud@free.fr>
pkgname=mysql-utilities
pkgver=1.6.5
pkgrel=1
pkgdesc="A collection of command-line utilities that are used for maintaining and administering MySQL servers"
arch=('any')
url="http://dev.mysql.com/downloads/tools/utilities/"
license=('GPL')
groups=()
depends=('python2-mysql-connector')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=(http://cdn.mysql.com/Downloads/MySQLGUITools/$pkgname-$pkgver.tar.gz)
md5sums=('4a7ac8ada2618308999973dbd201ab31')

package() {
  cd "$srcdir/$pkgname-$pkgver"
  python2 setup.py install --root="$pkgdir/" --optimize=1

  # Remove files clashing with python2-mysql-connector
  rm -f "$pkgdir/usr/lib/python2.7/site-packages/mysql/__init__.py"
  rm -f "$pkgdir/usr/lib/python2.7/site-packages/mysql/__init__.pyc"
  rm -f "$pkgdir/usr/lib/python2.7/site-packages/mysql/__init__.pyo"
  rm -rf "$pkgdir/usr/lib/python2.7/site-packages/mysql/connector/"
}

# vim:set ts=2 sw=2 et: