2017-03-18 13:43:27 +01:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
|
|
|
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
|
|
# you also find the URL of a binary repository.
|
|
|
|
|
|
|
|
pkgname=pistache-git
|
|
|
|
_name=${pkgname%-git}
|
2021-10-11 12:49:23 +02:00
|
|
|
pkgver=1534.ff9db0d
|
2017-03-18 13:43:27 +01:00
|
|
|
pkgrel=1
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
pkgdesc='Modern and elegant HTTP and REST framework for C++'
|
|
|
|
license=('APACHE')
|
2021-10-11 16:56:04 +02:00
|
|
|
depends=('openssl')
|
|
|
|
makedepends=('rapidjson' 'meson' 'git')
|
2019-06-26 13:01:31 +02:00
|
|
|
checkdepends=('gtest')
|
2017-03-18 13:43:27 +01:00
|
|
|
provides=("${_name}")
|
|
|
|
conflicts=("${_name}")
|
2019-08-14 01:58:27 +02:00
|
|
|
options=(staticlibs)
|
2021-10-11 12:49:23 +02:00
|
|
|
url="https://github.com/pistacheio/${_name}"
|
|
|
|
source=("git+https://github.com/pistacheio/${_name}.git")
|
2018-01-29 16:11:26 +01:00
|
|
|
sha256sums=('SKIP')
|
2017-03-18 13:43:27 +01:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${_name}"
|
|
|
|
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${_name}"
|
2017-07-03 22:45:00 +02:00
|
|
|
|
2021-10-11 16:56:04 +02:00
|
|
|
arch-meson build \
|
2021-10-11 12:49:23 +02:00
|
|
|
--buildtype=release \
|
2019-08-14 01:58:27 +02:00
|
|
|
-DPISTACHE_USE_SSL=true \
|
2021-10-11 12:49:23 +02:00
|
|
|
-DPISTACHE_BUILD_EXAMPLES=true \
|
|
|
|
-DPISTACHE_BUILD_TESTS=true \
|
|
|
|
-DPISTACHE_BUILD_DOCS=false
|
|
|
|
meson compile -C build
|
2017-03-18 13:43:27 +01:00
|
|
|
}
|
|
|
|
|
2017-03-23 21:39:17 +01:00
|
|
|
check() {
|
|
|
|
cd "${srcdir}/${_name}"
|
2021-10-11 12:49:23 +02:00
|
|
|
meson test -C build
|
2017-03-23 21:39:17 +01:00
|
|
|
}
|
|
|
|
|
2017-03-18 13:43:27 +01:00
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${_name}"
|
2021-10-11 16:56:04 +02:00
|
|
|
DESTDIR="$pkgdir" meson install -C build
|
2017-03-18 13:43:27 +01:00
|
|
|
}
|