updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mysql-gui-tools / PKGBUILD
blob9c7458830f62f853a5579460cdf4e2716c8c31f6
1 # Maintainer: Douglas Soares de Andrade <dsandrade@gmail.com>
2 # Contributor: Vinay S Shastry <vinayshastry@gmail.com>
3 # Contributor: Alexander De Sousa <archaur.xandy21@spamgourmet.com>
5 pkgname=mysql-gui-tools
6 pkgver=5.0r14
7 pkgrel=5
8 arch=('i686' 'x86_64')
9 pkgdesc="Set of programs to manage and interact with a MySQL server."
10 url="http://www.mysql.com/products/tools/"
11 license=('GPL')
12 source=(http://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQLGUITools/$pkgname-$pkgver.tar.gz
13         bad-char.patch
14         mysql-gui-tools-sigc_2.1.1_api_fixes.diff
15         mysql-gui-tools-5.0_p12-deprecated-gtk+-api.patch
16         mysql-gui-tools-gcc43.patch
17         mysql-gui-tools-schema-change-freeze.patch
18         mysql-gui-tools-5.0r14-common.patch
19         mysql-administrator mysql-query-browser
20         is-num-field-macro.patch
21         deprecated-gtk-widget-state.patch
22         global-header-detection-fix.patch)
23 md5sums=('b8efefbf20b7264c8f3afd34424467d7'
24          '4279c75bb5e6c2bfcb16c98817d55b80'
25          '4625629385142862cd01d37f814d5e80'
26          '33205d45329ab4fa4096b6b298a60b2c'
27          '1368384dac87bc0a64adb774ab2e6cbd'
28          'd2f5a0405cbf7430bffb4c5c83ae5b34'
29          'e0c66b81577999392e9abfbc02f45373'
30          '4d189c20835735aa91d078c26cae11c6'
31          '0ccdfaa3b8405f8405fef45060130b62'
32          '2b33e3008d7ef80abca79b0828ce5d70'
33          '59d69215d9f38d2ceb3153290899c193'
34          'c1ab3ba0922a0d72a9056646c6b2c32e')
35 depends=('gtkmm' 'gtkhtml' 'libmysqlclient' 'libgnome' 'libglade')
36 replaces=('mysql-administrator' 'mysql-query-browser')
37 conflicts=('mysql-administrator' 'mysql-query-browser')
38 provides=('mysql-gui-common' 'mysql-administrator' 'mysql-query-browser')
39 makedepends=('pkgconfig' 'lua' 'libxml2' 'libgnomeprint')
41 build() {
42         cd "$srcdir/$pkgname-$pkgver"
44         # Patches to make 5.0r14 compile:
45         patch -Nsup1 -i "$srcdir/bad-char.patch"
46         patch -Nsup1 -i "$srcdir/mysql-gui-tools-sigc_2.1.1_api_fixes.diff"
47         patch -Nsup1 -i "$srcdir/mysql-gui-tools-gcc43.patch"
48         patch -Nsup0 -i "$srcdir/mysql-gui-tools-5.0_p12-deprecated-gtk+-api.patch"
49         patch -Nsup0 -i "$srcdir/mysql-gui-tools-schema-change-freeze.patch"
50         patch -Nsup1 -i "$srcdir/mysql-gui-tools-5.0r14-common.patch"
51         patch -Nsup1 -i "$srcdir/is-num-field-macro.patch"
52         patch -Nsup1 -i "$srcdir/deprecated-gtk-widget-state.patch"
53         patch -Nsup1 -i "$srcdir/global-header-detection-fix.patch"
55         cd "$srcdir/$pkgname-$pkgver/common"
56         sh autogen.sh --prefix=/usr --datarootdir=/usr/share
57         make
59         ln -s "$srcdir/$pkgname-$pkgver/common" \
60                 "$srcdir/$pkgname-$pkgver/mysql-gui-common"
62         cd "$srcdir/$pkgname-$pkgver/administrator"
63         sh autogen.sh --prefix=/usr --datarootdir=/usr/share
64         make
66         cd "$srcdir/$pkgname-$pkgver/query-browser"
67         sh autogen.sh --prefix=/usr --datarootdir=/usr/share --with-gtkhtml=libgtkhtml-3.14
68         make CFLAGS="$CFLAGS -D_GNU_SOURCE"
72 package() {
73         cd "$srcdir/$pkgname-$pkgver/common"
74         make DESTDIR="$pkgdir" install
76         cd "$srcdir/$pkgname-$pkgver/administrator"
77         make DESTDIR="$pkgdir" install
79         cd "$srcdir/$pkgname-$pkgver/query-browser"
80         make DESTDIR="$pkgdir" install
82         # Fixed startup scripts:
83         install -m755 $srcdir/mysql-administrator $pkgdir/usr/bin
84         install -m755 $srcdir/mysql-query-browser $pkgdir/usr/bin
87 # vim: set ft=sh ts=3 sw=3 tw=0: