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

Levente Polyak anthraxx at archlinux.org
Sun Feb 10 16:35:00 UTC 2019


    Date: Sunday, February 10, 2019 @ 16:34:59
  Author: anthraxx
Revision: 431620

upgpkg: sqlitebrowser 3.11.0-1

Modified:
  sqlitebrowser/trunk/PKGBUILD

----------+
 PKGBUILD |   52 +++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 37 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-02-10 16:28:56 UTC (rev 431619)
+++ PKGBUILD	2019-02-10 16:34:59 UTC (rev 431620)
@@ -1,27 +1,49 @@
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: Douglas Soares de Andrade <dsandrade at gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# 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>
 
 pkgname=sqlitebrowser
-pkgver=3.10.1
+_gitcommit=3513bf9bbb159371104a537c9edb57092d5c609a
+pkgver=3.11.0
 pkgrel=1
-pkgdesc="SQLite Database browser is a light GUI editor for SQLite databases, built on top of Qt"
+pkgdesc='SQLite Database browser is a light GUI editor for SQLite databases, built on top of Qt'
+url='https://sqlitebrowser.org/'
 arch=('x86_64')
-url="http://sqlitebrowser.org/"
-license=('GPL')
-depends=('qt5-base' 'hicolor-icon-theme')
-makedepends=('cmake' 'qt5-tools')
-#source=(https://github.com/sqlitebrowser/sqlitebrowser/archive/sqlb-$pkgver.tar.gz)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/sqlitebrowser/sqlitebrowser/archive/v$pkgver.tar.gz")
-sha256sums=('36eb53bc75192c687dce298c79f1532c410ce4ecbeeacfb07b9d02a307f16bef')
+license=('GPL3')
+depends=('qt5-base' 'hicolor-icon-theme' 'desktop-file-utils')
+makedepends=('git' 'cmake' 'qt5-tools')
+source=("git+https://github.com/sqlitebrowser/sqlitebrowser#commit=${_gitcommit}?signed")
+sha256sums=('SKIP')
+validpgpkeys=('05E463FDB5802C3D00257F9C79EAD0AB3BD7DD2C') # Justin Clift (GPG key for signing git commits) <justin at postgresql.org>
 
+pkgver() {
+  cd ${pkgname}
+  git describe --always --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+  cd ${pkgname}
+  mkdir -p build
+}
+
 build() {
-  cd $pkgname-$pkgver
-  cmake -DCMAKE_INSTALL_PREFIX=/usr .
+  cd ${pkgname}/build
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DENABLE_TESTING=ON \
+    ..
   make
 }
 
+check() {
+  cd ${pkgname}/build
+  ctest -V
+}
+
 package() {
-  cd $pkgname-$pkgver
-  make install DESTDIR="$pkgdir"
+  cd ${pkgname}
+  make -C build install DESTDIR="${pkgdir}"
 }
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list