[arch-commits] Commit in sqlitebrowser/trunk (PKGBUILD)

Levente Polyak anthraxx at gemini.archlinux.org
Thu Jun 9 15:05:15 UTC 2022


    Date: Thursday, June 9, 2022 @ 15:05:15
  Author: anthraxx
Revision: 1229683

upgpkg: sqlitebrowser 3.12.2-2: sqlcipher support and unbundle deps

Modified:
  sqlitebrowser/trunk/PKGBUILD

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-09 14:57:42 UTC (rev 1229682)
+++ PKGBUILD	2022-06-09 15:05:15 UTC (rev 1229683)
@@ -2,20 +2,27 @@
 # Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
 # Contributor: Douglas Soares de Andrade <dsandrade at gmail.com>
 # Contributor: Michael Fellinger <m.fellinger at gmail.com>
+# Contributor: Steffen Jaeckel <arch-pkgs at jaeckel.eu>
 
 pkgname=sqlitebrowser
 _gitcommit=v3.12.2
 pkgver=3.12.2
-pkgrel=1
+pkgrel=2
 pkgdesc='SQLite Database browser is a light GUI editor for SQLite databases, built on top of Qt'
 url='https://sqlitebrowser.org/'
-arch=('x86_64')
-license=('GPL3')
-depends=('qt5-base' 'hicolor-icon-theme' 'desktop-file-utils')
-makedepends=('git' 'cmake' 'ninja' 'qt5-tools')
+arch=(x86_64)
+license=(GPL3)
+depends=(
+  qt5-base hicolor-icon-theme sqlcipher qcustomplot qhexedit2 qscintilla-qt5
+  libqcustomplot.so libqhexedit.so
+)
+makedepends=(git cmake ninja qt5-tools)
+options=(debug)
 source=("git+https://github.com/sqlitebrowser/sqlitebrowser#tag=${_gitcommit}?signed")
 sha256sums=('SKIP')
-validpgpkeys=('05E463FDB5802C3D00257F9C79EAD0AB3BD7DD2C') # Justin Clift (GPG key for signing git commits) <justin at postgresql.org>
+validpgpkeys=(
+  '05E463FDB5802C3D00257F9C79EAD0AB3BD7DD2C' # Justin Clift (GPG key for signing git commits) <justin at postgresql.org>
+)
 
 pkgver() {
   cd ${pkgname}
@@ -22,12 +29,25 @@
   git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
 }
 
+prepare() {
+  cd ${pkgname}
+  rm -r libs/{qcustomplot-source,qhexedit,qscintilla}
+  # fix qhexedit2 detection
+  git cherry-pick --no-commit 4e7669bd0c6d9ca2c57b597f7d67df0e96bd12de
+  git cherry-pick --no-commit 93b16bdad08e685d3b6fc1981dc50e92cfd4d0c3
+}
+
 build() {
   cd ${pkgname}
   cmake -B build \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=None \
+    -DBUILD_STABLE_VERSION=ON \
     -DENABLE_TESTING=ON \
+    -DFORCE_INTERNAL_QCUSTOMPLOT=OFF \
+    -DFORCE_INTERNAL_QSCINTILLA=OFF \
+    -DFORCE_INTERNAL_QHEXEDIT=OFF \
+    -Dsqlcipher=1 \
     -Wno-dev \
     -G Ninja
   ninja -C build



More information about the arch-commits mailing list