You are not logged in.

#1 2004-09-26 21:40:36

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

gmysqlcc: gtk+ mysql admin/query tool

I'm not sure how much good it is but in the absence of other good gui tools for mysql (mysqlcc development is over, new tools from mysql site do not compile with the latest gcc) it's better than nothing. It's based on gtk2 and the pkgbuild is very simpile but works.

gmysqlcc PKGBUILD

pkgname=gmysqlcc
pkgver=0.2.2a
pkgrel=1
pkgdesc="Gtk+ GUI client for mysql databases"
url="http://gmysqlcc.thepozer.net"
depends=('gtk2' 'mysql' 'gtksourceview')
source=(http://gmysqlcc.thepozer.net/dl/$pkgname-$pkgver.tar.gz mkinstalldirs)
md5sums=('2257622883d5d91ea0e396cfa1121150' 'd69600ffc4dd42fc930f4494b93f97ed')

build() {

#   A little fix for missing mkinstalldirs file in this version
    cd $startdir/src
    cp ./mkinstalldirs $pkgname-$pkgver/mkinstalldirs
    chmod 755 $pkgname-$pkgver/mkinstalldirs

    cd $startdir/src/$pkgname-$pkgver

#   with gtk-sourceview (better syntax highliting)
    ./configure --prefix=/usr --with-gtksourceview

#   without gtk-sourceview (remove gtksourceview dependency)
#   ./configure --prefix=/usr

    make || return 1
    make DESTDIR=$startdir/pkg install

}

EDIT: new version update (above). gmysqlcc now supports gtksourceview (you can disable it if you want - I placed comments inside pkgbuild).

This version is missing mkinstalldirs file . I used the mkinstalldirs file fromm the previous version source tar.gz (available from gmysqlcc homepage download secion).

You can copy the below mkinstalldirs script but be careful with md5sums (you might need to regenerate them with makepkg -g >>PKGBUILD).

mkinstalldirs file

#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain

# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $

errstatus=0

for file
do
   set fnord `echo ":$file" | sed -ne 's/^://#/;s/^://;s/// /g;s/^#///;p'`
   shift

   pathcomp=
   for d
   do
     pathcomp="$pathcomp$d"
     case "$pathcomp" in
       -* ) pathcomp=./$pathcomp ;;
     esac

     if test ! -d "$pathcomp"; then
        echo "mkdir $pathcomp"

        mkdir "$pathcomp" || lasterr=$?

        if test ! -d "$pathcomp"; then
      errstatus=$lasterr
        fi
     fi

     pathcomp="$pathcomp/"
   done
done

exit $errstatus

# mkinstalldirs ends here

Offline

Board footer

Powered by FluxBB