diff options
author | Aleksandar Trifunovic | 2021-03-02 11:48:09 +0100 |
---|---|---|
committer | Aleksandar Trifunovic | 2021-03-02 11:48:09 +0100 |
commit | 82caa996cd92a22b2b596eae976530747ff4a6ad (patch) | |
tree | a3d7082022191e717ac5abc4ec98dcfe5ffec984 /PKGBUILD | |
parent | 3239c1198a77abcddca792e7207eb5af09b27bf8 (diff) | |
download | aur-82caa996cd92a22b2b596eae976530747ff4a6ad.tar.gz |
bump to 0.7.0 and switch to cmake
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 17 insertions, 9 deletions
@@ -1,37 +1,45 @@ # Maintainer: Aleksandar Trifunović <akstrfn@gmail.com> pkgname=prime_server -pkgver=0.6.7 +pkgver=0.7.0 pkgrel=1 pkgdesc="Non-blocking server API for distributed computing and SOA based on zeromq." arch=('x86_64') url="https://github.com/kevinkreiser/prime_server" license=('custom') depends=('curl' 'zeromq' 'czmq') +makedepends=('cmake') source=("https://github.com/kevinkreiser/prime_server/archive/$pkgver.tar.gz") -sha256sums=('30ccd40689e50f55ea01015331e14b7c0d7efdab5641e2831851545cb86ed6fb') +sha256sums=('4c540c351cec29c19229b26fb0db1ba5dfba719dd0b4e029198da6a936950107') prepare() { cd "$pkgname-$pkgver" - curl https://gist.githubusercontent.com/kevinkreiser/39f2e39273c625d96790/raw/c5b9b40d1e47cd190d78582993fd07e4478540af/logging.hpp > prime_server/logging.hpp + curl https://gist.githubusercontent.com/kevinkreiser/39f2e39273c625d96790/raw/c5b9b40d1e47cd190d78582993fd07e4478540af/logging.hpp > src/logging/logging.hpp curl https://gist.githubusercontent.com/kevinkreiser/ada902fb51a1ad1e5a27/raw/1c45352fa2c4e25a748cf1221b93a9aed4dbc34c/testing.hpp > test/testing/testing.hpp + sed -i 's/-pedantic//;s/-Werror//' CMakeLists.txt + sed -i 's/VERSION 0.6.7/VERSION 0.7.0/' CMakeLists.txt } build() { cd "$pkgname-$pkgver" - ./autogen.sh - ./configure --prefix=/usr LIBS="-lpthread" - make all + cmake -H. -Bbuild \ + -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \ + -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \ + -DCMAKE_EXE_LINKER_FLAGS:STRING="${LDFLAGS}" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + + cmake --build build -- "${MAKEFLAGS}" } check() { - cd "$pkgname-$pkgver" - make -k test + cd "$pkgname-$pkgver/build" + ctest --parallel `nproc` } package() { cd "$pkgname-$pkgver" - make DESTDIR="$pkgdir/" install + cmake --build build -- DESTDIR="$pkgdir/" install install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |