summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFederico Di Pierro2018-06-14 20:05:17 +0200
committerFederico Di Pierro2018-06-14 20:05:17 +0200
commit598729816eba5bc9656de41d62e4e06e12f89502 (patch)
tree9ab8709cb5824497810cffa3a9716bdee7a819e4 /PKGBUILD
downloadaur-598729816eba5bc9656de41d62e4e06e12f89502.tar.gz
Uploaded libulfius to AUR. First draft.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..44658e1203e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Federico Di Pierro <nierro92@gmail.com>
+
+pkgname=libulfius
+_gitname=ulfius
+pkgver=2.3.6
+pkgrel=1
+pkgdesc="HTTP Framework for REST API in C, using JSON, with websockets and streaming data"
+arch=(x86_64)
+url="https://github.com/babelouest/${_gitname}"
+license=(GPL)
+depends=('libmicrohttpd' 'jansson' 'curl' 'gnutls' 'libgcrypt')
+makedepends=(git cmake)
+source=("${_gitname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=("dbf1c4f32768d41b6e45b844f32927b9ae8dbccfa2cc8c6607755a6ee105d9a6")
+
+prepare() {
+ cd "${srcdir}/${_gitname}-${pkgver}"
+ GIT_DISCOVERY_ACROSS_FILESYSTEM=1 git submodule update --init
+ mkdir -p build
+}
+
+build() {
+ cd "${srcdir}/${_gitname}-${pkgver}"/build
+ cmake \
+ -G "Unix Makefiles" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE="Release" \
+ ../
+ make
+}
+
+package() {
+ cd "${srcdir}/${_gitname}-${pkgver}"/build
+ make DESTDIR="$pkgdir" install
+}