summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Shparber2017-02-19 21:28:30 -0500
committerOleg Shparber2017-02-19 21:28:30 -0500
commita6a58f5b1fa1dd4c1d181ae976092f0a982eef00 (patch)
tree9c9b996c77dc0a3cd3c9e3b5ccbdafc731b60faf
parenta4acb7d77ab4a9287be00e1803a0f39f36f763f3 (diff)
downloadaur-a6a58f5b1fa1dd4c1d181ae976092f0a982eef00.tar.gz
Replace PKGBUILD to use CMake
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD34
2 files changed, 25 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f4a4c54a9a3..0ed0d5472be 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,24 @@
# Generated by mksrcinfo v8
-# Mon Oct 10 06:30:22 UTC 2016
+# Mon Feb 20 02:26:42 UTC 2017
pkgbase = zeal-git
- pkgdesc = An offline API documentation browser
- pkgver = 0.3.1.4.g042b0bb
+ pkgdesc = A simple documentation browser
+ pkgver = 0.3.1.47.g89b9d91
pkgrel = 1
url = https://zealdocs.org/
arch = i686
arch = x86_64
license = GPL3
+ makedepends = cmake
+ makedepends = extra-cmake-modules
makedepends = git
depends = libarchive
- depends = qt5-webkit
depends = qt5-imageformats
+ depends = qt5-webkit
depends = qt5-x11extras
depends = xcb-util-keysyms
depends = xdg-utils
conflicts = zeal
- source = git+https://github.com/zealdocs/zeal
+ source = zeal::git+https://github.com/zealdocs/zeal
sha1sums = SKIP
pkgname = zeal-git
diff --git a/PKGBUILD b/PKGBUILD
index 826d7082fde..1cd3ceea808 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,36 @@
-# Maintainer: Oleg Shparber <trollixx+aur@gmail.com>
-# Contributor: Whyme Lyu <callme5long@gmail.com>
-# URL: https://github.com/trollixx/aur-packages
+# Maintainer: Oleg Shparber <oleg@zealdocs.org>
-pkgname=zeal-git
_appname=zeal
-pkgver=0.3.1.4.g042b0bb
+
+pkgname=${_appname}-git
+pkgver=0.3.1.47.g89b9d91
pkgrel=1
-pkgdesc="An offline API documentation browser"
+pkgdesc="A simple documentation browser"
arch=('i686' 'x86_64')
url="https://zealdocs.org/"
license=('GPL3')
-depends=('libarchive' 'qt5-webkit' 'qt5-imageformats' 'qt5-x11extras'
+depends=('libarchive' 'qt5-imageformats' 'qt5-webkit' 'qt5-x11extras'
'xcb-util-keysyms' 'xdg-utils')
-makedepends=('git')
-conflicts=('zeal')
-source=("git+https://github.com/zealdocs/$_appname")
+makedepends=('cmake' 'extra-cmake-modules' 'git')
+conflicts=(${_appname})
+source=("${_appname}::git+https://github.com/zealdocs/${_appname}")
sha1sums=('SKIP')
pkgver() {
- cd ${srcdir}/${_appname}
- git describe | sed 's/^v//;s/-/./g'
+ cd ${_appname}
+ # TODO: Use on next version update.
+ # git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+ git describe --long | sed 's/^v//;s/\([^-]*-g\)/\1/;s/-/./g'
}
build() {
- cd ${srcdir}/${_appname}
- qmake-qt5 "CONFIG+=force_debug_info" "QMAKE_LFLAGS+=-rdynamic"
+ mkdir -p build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ${srcdir}/${_appname}
make
}
package() {
- cd ${srcdir}/${_appname}
- make INSTALL_ROOT="$pkgdir" install
+ cd build
+ make DESTDIR=${pkgdir} install
}