summaryrefslogtreecommitdiffstats
path: root/abs/extra/libcbor/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2020-10-04 18:57:49 (GMT)
committerBritney Fransen <brfransen@gmail.com>2020-10-04 18:57:49 (GMT)
commitd0449f180ebb23ff8715c56ccb734fc878f25ba7 (patch)
treea6a9cbf105ea4a4c2d7fe59b0e1966632099cd99 /abs/extra/libcbor/PKGBUILD
parentc16e671aede001379874f3b9e79b56dfbea12ed6 (diff)
downloadlinhes_pkgbuild-d0449f180ebb23ff8715c56ccb734fc878f25ba7.zip
linhes_pkgbuild-d0449f180ebb23ff8715c56ccb734fc878f25ba7.tar.gz
linhes_pkgbuild-d0449f180ebb23ff8715c56ccb734fc878f25ba7.tar.bz2
libcbor: update to 0.8.0
Diffstat (limited to 'abs/extra/libcbor/PKGBUILD')
-rw-r--r--abs/extra/libcbor/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/abs/extra/libcbor/PKGBUILD b/abs/extra/libcbor/PKGBUILD
new file mode 100644
index 0000000..97f565d
--- /dev/null
+++ b/abs/extra/libcbor/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
+
+pkgname=libcbor
+pkgver=0.8.0
+pkgrel=1
+pkgdesc='C library for parsing and generating CBOR, the general-purpose schema-less binary data format'
+url='https://github.com/PJK/libcbor'
+arch=('x86_64')
+license=('MIT')
+depends=('glibc')
+makedepends=('cmake' 'cmocka')
+provides=('libcbor.so')
+source=(https://github.com/PJK/libcbor/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('694d2d3a78d80072f96e0afb73590ca1f3572e41d2117330ef4313ed06271743b048d3ba3259c6ffe9a802d5e441379d0e54787d1d42fed08dc81ac4f06c6dbc')
+b2sums=('e8548e7351984ebdcbeb5f13a7ca35412c3f3f05e2a44a5438d57b90bdcdc51f5265953163106f90ade911a96af665956ebeba7ed1c48cf207acf6d683af5606')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ cmake . \
+ -Bbuild \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_C_FLAGS="${CFLAGS} ${CPPFLAGS}" \
+ -DBUILD_SHARED_LIBS=ON \
+ -DWITH_TESTS=1
+ make -C build VERBOSE=1
+ make -C build/test VERBOSE=1
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+ make -C build/test test
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ make -C build DESTDIR="${pkgdir}" install
+ install -Dm 644 README.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et: