pkgname=dbeaver-ce pkgver=22.2.0 pkgrel=1 pkgdesc="An universal database tool for developers and database administrators. Community Edition" arch=('i686' 'x86_64') url="https://github.com/dbeaver/dbeaver" license=("GPL") depends=('java-runtime>=1.6' 'gtk2' 'gtk-update-icon-cache') install=dbeaver-ce.install source=(dbeaver-ce.desktop dbeaver-ce.install) source_x86_64=("https://dbeaver.io/files/dbeaver-ce-latest-linux.gtk.x86_64.tar.gz" "https://dbeaver.io/files/${pkgver}/checksum/dbeaver-ce-${pkgver}-linux.gtk.x86_64.tar.gz.md5") sha256sums=('SKIP' 'SKIP') sha256sums_i686=('SKIP' 'SKIP') sha256sums_x86_64=('SKIP' 'SKIP') prepare() { mkdir -p $srcdir/$pkgname cd $srcdir/$pkgname tar -xf "$srcdir/dbeaver-ce-latest-linux.gtk.x86_64.tar.gz" } package() { cd $pkgdir mkdir -p opt/ mkdir -p usr/bin mkdir -p usr/share/applications mkdir -p usr/share/icons/hicolor/48x48/apps cp -r $srcdir/$pkgname/dbeaver opt/$pkgname chmod +x opt/$pkgname/dbeaver cp opt/$pkgname/icon.xpm usr/share/icons/hicolor/48x48/apps/${pkgname}.xpm ln -s /opt/${pkgname}/dbeaver /usr/bin/dbeaver install -m 644 $srcdir/dbeaver-ce.desktop $pkgdir/usr/share/applications/ }