diff options
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 21 insertions, 17 deletions
@@ -1,18 +1,20 @@ pkgbase = pistache-git pkgdesc = Modern and elegant HTTP and REST framework for C++ - pkgver = 985.c5927e1 + pkgver = 1534.ff9db0d pkgrel = 1 - url = https://github.com/oktal/pistache + url = https://github.com/pistacheio/pistache arch = i686 arch = x86_64 license = APACHE checkdepends = gtest - makedepends = cmake + makedepends = rapidjson + makedepends = meson makedepends = git + depends = openssl provides = pistache conflicts = pistache - source = pistache::git://github.com/oktal/pistache.git + options = staticlibs + source = git+https://github.com/pistacheio/pistache.git sha256sums = SKIP pkgname = pistache-git - @@ -5,18 +5,19 @@ pkgname=pistache-git _name=${pkgname%-git} -pkgver=985.c5927e1 +pkgver=1534.ff9db0d pkgrel=1 arch=('i686' 'x86_64') pkgdesc='Modern and elegant HTTP and REST framework for C++' license=('APACHE') -depends=() -makedepends=('cmake' 'git') +depends=('openssl') +makedepends=('rapidjson' 'meson' 'git') checkdepends=('gtest') provides=("${_name}") conflicts=("${_name}") -url="https://github.com/oktal/${_name}" -source=("${_name}::git://github.com/oktal/${_name}.git") +options=(staticlibs) +url="https://github.com/pistacheio/${_name}" +source=("git+https://github.com/pistacheio/${_name}.git") sha256sums=('SKIP') pkgver() { @@ -27,20 +28,21 @@ pkgver() { build() { cd "${srcdir}/${_name}" - cmake \ - -DCMAKE_BUILD_TYPE=Release \ + arch-meson build \ + --buildtype=release \ + -DPISTACHE_USE_SSL=true \ + -DPISTACHE_BUILD_EXAMPLES=true \ -DPISTACHE_BUILD_TESTS=true \ - -DCMAKE_INSTALL_PREFIX="/usr" - make + -DPISTACHE_BUILD_DOCS=false + meson compile -C build } check() { cd "${srcdir}/${_name}" - make test + meson test -C build } package() { cd "${srcdir}/${_name}" - make DESTDIR="${pkgdir}" install - mv ${pkgdir}/usr/lib{64,} + DESTDIR="$pkgdir" meson install -C build } |