PKGBUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. pkgname=dbeaver-ce
  2. pkgver=22.2.0
  3. pkgrel=1
  4. pkgdesc="An universal database tool for developers and database administrators. Community Edition"
  5. arch=('i686' 'x86_64')
  6. url="https://github.com/dbeaver/dbeaver"
  7. license=("GPL")
  8. depends=('java-runtime>=1.6' 'gtk2' 'gtk-update-icon-cache')
  9. install=dbeaver-ce.install
  10. source=(dbeaver-ce.desktop dbeaver-ce.install)
  11. source_x86_64=("https://dbeaver.io/files/dbeaver-ce-latest-linux.gtk.x86_64.tar.gz"
  12. "https://dbeaver.io/files/${pkgver}/checksum/dbeaver-ce-${pkgver}-linux.gtk.x86_64.tar.gz.md5")
  13. sha256sums=('SKIP'
  14. 'SKIP')
  15. sha256sums_i686=('SKIP' 'SKIP')
  16. sha256sums_x86_64=('SKIP' 'SKIP')
  17. prepare() {
  18. mkdir -p $srcdir/$pkgname
  19. cd $srcdir/$pkgname
  20. tar -xf "$srcdir/dbeaver-ce-latest-linux.gtk.x86_64.tar.gz"
  21. }
  22. package() {
  23. cd $pkgdir
  24. mkdir -p opt/
  25. mkdir -p usr/bin
  26. mkdir -p usr/share/applications
  27. mkdir -p usr/share/icons/hicolor/48x48/apps
  28. cp -r $srcdir/$pkgname/dbeaver opt/$pkgname
  29. chmod +x opt/$pkgname/dbeaver
  30. cp opt/$pkgname/icon.xpm usr/share/icons/hicolor/48x48/apps/${pkgname}.xpm
  31. ln -s /opt/${pkgname}/dbeaver /usr/bin/dbeaver
  32. install -m 644 $srcdir/dbeaver-ce.desktop $pkgdir/usr/share/applications/
  33. }