blob: 85d627b57859069b9c5f211cf4067cd9aa94b5d0 (
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
49
50
51
52
|
# Maintainer: Nico <d3sox at protonmail dot com>
# Contributor: Liviu Cristian Mirea-Ghiban <liviu dot mirea at wecodepixels dot com>
heidisqlrelease=7165
shortpkgver=12.14
pkgname=heidisql-wine
pkgver=${shortpkgver}.0.${heidisqlrelease}
# dev did a little oopsie and tagged with another release number this time
_heidisqlrelease_gh=${shortpkgver}.0.7164
pkgrel=3
pkgdesc="A lightweight GUI for managing MySQL, PostgreSQL, and Microsoft SQL databases. This package uses the latest nightly build (64bit) on top of the portable version, and uses Wine."
arch=(any)
url="http://www.heidisql.com/"
license=('GPL')
depends=(bash wine)
makedepends=(unzip)
source=("https://github.com/HeidiSQL/HeidiSQL/releases/download/v${_heidisqlrelease_gh}/HeidiSQL_${shortpkgver}_64_Portable.zip"
"http://www.heidisql.com/builds/heidisql64.r${heidisqlrelease}.exe"
"${pkgname}.png"
"${pkgname}.desktop"
"${pkgname}.sh")
sha256sums=('9a7694a61247835b77e36fc14602efc235bcc50d65830f687042565b2ddc7af0'
'b9aa907a849fb1cf26dd496918e6a7aebbe0e078d18ca2ebe0dd0ffdaf0b8256'
'd0f6c19b7aa4b7a6daa00b658a852f97d35dd98d2c31a2f4ea267527bf5cda15'
'07abdaeab2b5c30ed7b053cce5e42942cc32c56503439eff69fb21b57c522122'
'840acb31ca1de8d029e725fded1ac09df0314dea41da53f15f4cd3848e34bb00')
noextract=("HeidiSQL_${shortpkgver}_Portable.zip")
package() {
# Unzip files from the .zip file
install -d -m755 ${pkgdir}/usr/share/$pkgname
unzip "$srcdir/HeidiSQL_${shortpkgver}_64_Portable.zip" -d "$srcdir/unzipped"
# Overwrite with nightly build file
cp "$srcdir/heidisql64.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"
}
|