summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 7 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index afdf9260f05..cc892fa4d6d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cpp-httplib
pkgdesc = A C++ header-only HTTP/HTTPS server and client library
pkgver = 0.7.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/yhirose/cpp-httplib
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index ad9b200a193..bdf04bae754 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: sum01 <sum01@protonmail.com>
pkgname=cpp-httplib
pkgver=0.7.0
-pkgrel=1
+pkgrel=2
pkgdesc='A C++ header-only HTTP/HTTPS server and client library'
arch=('any')
url='https://github.com/yhirose/cpp-httplib'
@@ -11,8 +11,11 @@ optdepends=('openssl>=1.1.1: https support' 'zlib: compression support')
source=("$pkgname-$pkgver.tar.gz::https://github.com/yhirose/cpp-httplib/archive/v$pkgver.tar.gz")
sha512sums=('4ffbeb6672dec5f3704d6c3da09acf0e1984b5c7c68455f7fb030a7457bc64983665498015f2372d8a85da02be1750bab03dae956653297ac8efef67ff682854')
build() {
- mkdir -p "$srcdir/$pkgname-$pkgver/build"
- cd "$srcdir/$pkgname-$pkgver/build"
+ cd "$srcdir/$pkgname-$pkgver"
+ # Lets us force a full version string to be defined instead of just a major.minor
+ sed -i "75s/^/set\(_httplib_version ${pkgver}\)/" "CMakeLists.txt"
+ mkdir -p "build"
+ cd "build"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
cmake --build .
}