PKGBUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Maintainer (Arch): Levente Polyak <anthraxx[at]archlinux[dot]org>
  2. # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
  3. # Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>
  4. # Contributor: Michael Fellinger <m.fellinger@gmail.com>
  5. # Maintainer : Sagar Acharya <sagar@hyperbola.info>
  6. pkgname=sqlitebrowser
  7. pkgver=3.12.1
  8. pkgrel=1
  9. pkgdesc='SQLite Database browser is a light GUI editor for SQLite databases, built on top of Qt'
  10. url='https://sqlitebrowser.org/'
  11. arch=('x86_64')
  12. license=('GPL-3')
  13. depends=('qt-base' 'hicolor-icon-theme' 'desktop-file-utils')
  14. makedepends=('git' 'cmake' 'ninja' 'qt-tools' 'quilt')
  15. source=("https://github.com/sqlitebrowser/sqlitebrowser/archive/refs/tags/v${pkgver}.tar.gz"
  16. "series"
  17. "0001-Use-system-qscintilla2.patch"
  18. "0002-Install-SVG-logo-as-hicolor-scalable-icon.patch")
  19. sha512sums=('f0a62958008693606d9ab04b0413fa10705c7b45fb970c218d8f1adfe8ca01895a6470f369ded6cb7a9338c27385838b8d57c89b5855b4050ce9bec0d69626d1'
  20. '8e0691ad29141c97aee759a3d1bf26c15b53a43e4a7af99d65087d1980a7f3b6e64bd98cd7b97c371182f948d30e9b07a438888c5c7ce74d1a113c63a747fd73'
  21. 'fbeb6397f735f0ba8ab6b4d7dcfb24213a7d6a3290d8a148a8fc403b23c592b4e689a33898d93123f4a7781b0b0ff19e8fa40908bf73406fc62ffb8e9f32e86f'
  22. '460b69ca47178d50f8597683ac5c51f8b6b6bc55cb0e9d87a4f686dd989464e77fd653a5ec5f68a61283b93452bccc6972a7cb6747fadb4feb640aab234d4bca')
  23. #validpgpkeys=('05E463FDB5802C3D00257F9C79EAD0AB3BD7DD2C')
  24. # Justin Clift (GPG key for signing git commits) <justin@postgresql.org>
  25. prepare() {
  26. cd ${pkgname}-${pkgver}
  27. mkdir ./patches
  28. cp ${srcdir}/series ./patches
  29. cp ${srcdir}/*.patch ./patches
  30. export QUILT_PATCHES=patches
  31. export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
  32. export QUILT_DIFF_ARGS='--no-timestamps'
  33. quilt push -av
  34. }
  35. build() {
  36. cd ${pkgname}-${pkgver}
  37. cmake -B build \
  38. -DCMAKE_INSTALL_PREFIX=/usr \
  39. -DCMAKE_BUILD_TYPE=None \
  40. -DENABLE_TESTING=ON \
  41. -Wno-dev \
  42. -G Ninja
  43. ninja -C build
  44. }
  45. check() {
  46. cd ${pkgname}-${pkgver}/build
  47. ctest -V
  48. }
  49. package() {
  50. cd ${pkgname}-${pkgver}
  51. DESTDIR="${pkgdir}" ninja -C build install
  52. install -Dm644 LICENSE -t $pkgdir/usr/share/licenses/$pkgname
  53. }