blob: 69cb7e924759e14fed55ee934996065251354f62 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Liviu Cristian Mirea-Ghiban <liviu dot mirea at wecodepixels dot com>
heidisqlrelease=5196
shortpkgver=9.5
pkgname=heidisql
pkgver=${shortpkgver}.0.${heidisqlrelease}
pkgrel=1
pkgdesc="A lightweight GUI for managing MySQL, PostgreSQL, and Microsoft SQL databases. This package uses the latest nightly build (32bit) on top of the portable version, and uses Wine."
arch=(any)
url="http://www.heidisql.com/"
license=('GPL')
depends=(bash wine)
makedepends=(unzip)
source=("http://www.heidisql.com/downloads/releases/HeidiSQL_${shortpkgver}_Portable.zip"
"http://www.heidisql.com/builds/heidisql32.r${heidisqlrelease}.exe"
"${pkgname}.png"
"${pkgname}.desktop"
"${pkgname}.sh")
md5sums=('a4347b83102e1dec1660d58576f8d6eb'
'fe5a168f3ecdc4803e7e8bcdc9788f32'
'df3673bc694beceb8ed6cfeace6b6c3f'
'ea4fc6959a315ef5c2bf8e22c479e22a'
'3cdbca3164df7d3629ffc469d52e53a0')
noextract=("HeidiSQL_${shortpkgver}_Portable.zip")
package() {
# Unzip files from the .zip file
install -d -m755 ${pkgdir}/usr/share/$pkgname
unzip "$srcdir/HeidiSQL_${shortpkgver}_Portable.zip" -d "$srcdir/unzipped"
# Overwrite with nightly build file
cp "$srcdir/heidisql32.r${heidisqlrelease}.exe" "$srcdir/unzipped/heidisql.exe"
# Install files
cp -ra "$srcdir/unzipped/"* "${pkgdir}/usr/share/${pkgname}"
# Set proper permissions
find "${pkgdir}/usr/share/${pkgname}" -type f -exec chmod 644 "{}" \;
find "${pkgdir}/usr/share/${pkgname}" -type d -exec chmod 755 "{}" \;
# Install the startup script
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
# Install the icon
install -Dm644 "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
# Install the .desktop
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}
|