summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsum012020-05-23 12:39:11 -0400
committersum012020-05-23 12:39:11 -0400
commit67b68d3cd36bd3f030abbb60cd41f1ec7b461a0b (patch)
tree82c6f39159c3d5c6adeb4bd7c5c1ea375ccdea6b
parent90760adf1efa91f554cd9addbf6783711edd1ffe (diff)
downloadaur-67b68d3cd36bd3f030abbb60cd41f1ec7b461a0b.tar.gz
v0.6.4
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD19
2 files changed, 17 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 427fcffb1a5..04f5b670472 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
pkgbase = cpp-httplib
pkgdesc = A C++ header-only HTTP/HTTPS server and client library
- pkgver = 0.6.3
+ pkgver = 0.6.4
pkgrel = 1
url = https://github.com/yhirose/cpp-httplib
arch = any
license = MIT
+ makedepends = cmake>=3.7
optdepends = openssl: https support
optdepends = zlib: compression support
- source = cpp-httplib-0.6.3.tar.gz::https://github.com/yhirose/cpp-httplib/archive/v0.6.3.tar.gz
- sha512sums = ae2bf37d72d26ba2f80c1d93592e40e931becc68ec3f257b6b811771f097f09ae5da2bf930c5067b06bd3e2886a33a8a004bfff7bf53240eca687bfcaa1d0c7f
+ source = cpp-httplib-0.6.4.tar.gz::https://github.com/yhirose/cpp-httplib/archive/v0.6.4.tar.gz
+ sha512sums = daab9baf86c7a284b5a747c8384d4f42171a531531ae1b2fe549413f4cb36115eb1e84bdb342efb25c7a4347899cecc4d45894b08c37bb84ef178b9fa4d1e7be
pkgname = cpp-httplib
diff --git a/PKGBUILD b/PKGBUILD
index f9de7d3ec45..73c1906571e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,24 @@
# Maintainer: sum01 <sum01@protonmail.com>
pkgname=cpp-httplib
-pkgver=0.6.3
+pkgver=0.6.4
pkgrel=1
pkgdesc='A C++ header-only HTTP/HTTPS server and client library'
arch=('any')
url='https://github.com/yhirose/cpp-httplib'
license=('MIT')
+makedepends=('cmake>=3.7')
optdepends=('openssl: https support' 'zlib: compression support')
source=("$pkgname-$pkgver.tar.gz::https://github.com/yhirose/cpp-httplib/archive/v$pkgver.tar.gz")
-sha512sums=('ae2bf37d72d26ba2f80c1d93592e40e931becc68ec3f257b6b811771f097f09ae5da2bf930c5067b06bd3e2886a33a8a004bfff7bf53240eca687bfcaa1d0c7f')
+sha512sums=('daab9baf86c7a284b5a747c8384d4f42171a531531ae1b2fe549413f4cb36115eb1e84bdb342efb25c7a4347899cecc4d45894b08c37bb84ef178b9fa4d1e7be')
+build() {
+ mkdir -p "$srcdir/$pkgname-$pkgver/build"
+ cd "$srcdir/$pkgname-$pkgver/build"
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
+ cmake --build .
+}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- install -Dm644 'README.md' "$pkgdir/usr/share/doc/$pkgname/README.md"
- install -Dm644 'httplib.h' "$pkgdir/usr/include/httplib.h"
+ cd "$srcdir/$pkgname-$pkgver/build"
+ cmake --build . --target install DESTDIR="$pkgdir"
+ install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 '../README.md' "$pkgdir/usr/share/doc/$pkgname/README.md"
}