updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / navicat-mysql / PKGBUILD
blob49386baea4ee84bca86f943262fbbbafe40e807a
1 # Maintainer: sv99 <sv99sv@gmail.com>
3 pkgname=navicat-mysql
4 _pkgname=navicat
5 pkgver=9.1.8
6 pkgrel=1
7 pkgdesc="powerful Database administration and development tool for MySQL 30-day free trial."
8 url="http://www.navicat.com"
9 license=('custom')
10 arch=('any')
11 source=(http://download2.navicat.com/download/${_pkgname}091_mysql_en.tar.gz)
12 md5sums=('35716c0bbf66d29ac11ac274208d9c27')
14 build() {
17 cat <<EOF
18 [Desktop Entry]
19 Name=Navicat for MySQL
20 Comment=Database GUI
21 Exec=navicat-mysql
22 Icon=/opt/navicat-mysql/Navicat/help/img/icon_navicat.png
23 Terminal=0
24 Type=Application
25 Encoding=UTF-8
26 Categories=Development
27 EOF
28 ) > ${srcdir}/navicat-mysql.desktop
31 cat <<EOF
32 #!/bin/sh
33 /opt/navicat-mysql/start_navicat
34 EOF
35 ) > ${srcdir}/navicat-mysql
37   mkdir -p ${pkgdir}/opt/${pkgname}
38   mkdir -p ${pkgdir}/usr/bin
39   mkdir -p ${pkgdir}/usr/share/applications
40   cp -R ${srcdir}/navicat091_mysql_en/* ${pkgdir}/opt/${pkgname}
41   cp ${srcdir}/${pkgname} ${pkgdir}/usr/bin/
42   chmod +x ${pkgdir}/usr/bin/${pkgname}
43   cp ${srcdir}/navicat-mysql.desktop ${pkgdir}/usr/share/applications/