summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Shparber2019-09-30 01:25:32 -0400
committerOleg Shparber2019-09-30 01:25:32 -0400
commit3a14c56560f36b7e9635257b6b2e9d42b5c151c4 (patch)
treed4fb15580eb0111e9deb7fdc065182c6efb9727c
parent27851bdd0b187a21a82c4db94241a6ebe8b5d6ed (diff)
downloadaur-3a14c56560f36b7e9635257b6b2e9d42b5c151c4.tar.gz
Build as RelWithDebInfo, use Ninja instead of make
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD25
2 files changed, 17 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 56d4774c451..675f1469dee 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = zeal-git
pkgdesc = A simple documentation browser
- pkgver = 0.6.1.r72.ga998119
+ pkgver = 0.6.1.r84.g99d2cee
pkgrel = 1
url = https://zealdocs.org/
arch = i686
@@ -9,14 +9,11 @@ pkgbase = zeal-git
makedepends = cmake
makedepends = extra-cmake-modules
makedepends = git
- depends = desktop-file-utils
+ makedepends = ninja
depends = hicolor-icon-theme
depends = libarchive
depends = qt5-webkit
depends = qt5-x11extras
- depends = sqlite
- depends = xcb-util-keysyms
- depends = xdg-utils
conflicts = zeal
source = zeal::git+https://github.com/zealdocs/zeal
sha1sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index c9e53998546..9f1f47741e6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,16 +3,14 @@
_appname=zeal
pkgname=${_appname}-git
-pkgver=0.6.1.r72.ga998119
+pkgver=0.6.1.r84.g99d2cee
pkgrel=1
pkgdesc="A simple documentation browser"
arch=('i686' 'x86_64')
url="https://zealdocs.org/"
license=('GPL3')
-depends=('desktop-file-utils' 'hicolor-icon-theme'
- 'libarchive' 'qt5-webkit' 'qt5-x11extras'
- 'sqlite' 'xcb-util-keysyms' 'xdg-utils')
-makedepends=('cmake' 'extra-cmake-modules' 'git')
+depends=('hicolor-icon-theme' 'libarchive' 'qt5-webkit' 'qt5-x11extras')
+makedepends=('cmake' 'extra-cmake-modules' 'git' 'ninja')
conflicts=(${_appname})
source=("${_appname}::git+https://github.com/zealdocs/${_appname}")
sha1sums=('SKIP')
@@ -22,14 +20,21 @@ pkgver() {
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
-build() {
+prepare() {
mkdir -p build
+}
+
+build() {
cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr ${srcdir}/${_appname}
- make
+
+ cmake -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ "${srcdir}/${_appname}"
+
+ ninja
}
package() {
- cd build
- make DESTDIR=${pkgdir} install
+ DESTDIR="${pkgdir}" ninja -C build install
}