summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Shparber2019-09-30 09:03:55 -0400
committerOleg Shparber2019-09-30 09:03:55 -0400
commitcc1bb1a07cd0a617f030a7762bb9d1a8ec58c170 (patch)
tree890f19a20b22dc954deb86984d00459697dca13c
parent3a14c56560f36b7e9635257b6b2e9d42b5c151c4 (diff)
downloadaur-cc1bb1a07cd0a617f030a7762bb9d1a8ec58c170.tar.gz
Use cmake instead of invoking Ninja directly
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD15
2 files changed, 6 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 675f1469dee..2b090bdf8ee 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = zeal-git
pkgdesc = A simple documentation browser
- pkgver = 0.6.1.r84.g99d2cee
+ pkgver = 0.6.1.r86.g9a394d3
pkgrel = 1
url = https://zealdocs.org/
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 9f1f47741e6..80098b5e60d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,10 @@
# Maintainer: Oleg Shparber <oleg@zealdocs.org>
_appname=zeal
+_builddir=build
pkgname=${_appname}-git
-pkgver=0.6.1.r84.g99d2cee
+pkgver=0.6.1.r86.g9a394d3
pkgrel=1
pkgdesc="A simple documentation browser"
arch=('i686' 'x86_64')
@@ -20,21 +21,15 @@ pkgver() {
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
-prepare() {
- mkdir -p build
-}
-
build() {
- cd build
-
- cmake -G Ninja \
+ cmake -G Ninja -B "${_builddir}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
"${srcdir}/${_appname}"
- ninja
+ cmake --build "${_builddir}"
}
package() {
- DESTDIR="${pkgdir}" ninja -C build install
+ cmake --install "${_builddir}" --prefix "${pkgdir}/usr"
}