[arch-commits] Commit in libcbor/repos (extra-x86_64 extra-x86_64/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sat Feb 15 12:40:52 UTC 2020


    Date: Saturday, February 15, 2020 @ 12:40:51
  Author: anthraxx
Revision: 375639

archrelease: copy trunk to extra-x86_64

Added:
  libcbor/repos/extra-x86_64/
  libcbor/repos/extra-x86_64/PKGBUILD
    (from rev 375638, libcbor/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: libcbor/repos/extra-x86_64/PKGBUILD (from rev 375638, libcbor/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2020-02-15 12:40:51 UTC (rev 375639)
@@ -0,0 +1,42 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Moritz Kiefer <moritz.kiefer at purelyfunctional.org>
+
+pkgname=libcbor
+pkgver=0.5.0
+pkgrel=2
+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)
+sha256sums=('9bbec94bb385bad3cd2f65482e5d343ddb97e9ffe261123ea0faa3bfea51d320')
+b2sums=('57e15e648159e7858d9d57a8b4cb7f3682f8153248610c9a3385cf9cbdea8babaf81d596b25d44bf6d59c75de23e76cce462fa7860b294019f46636726206d5a')
+
+build() {
+  mkdir -p ${pkgname}-${pkgver}/build
+  cd ${pkgname}-${pkgver}/build
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DWITH_TESTS=1
+  make cbor cbor_shared
+  make -C test
+}
+
+check() {
+  cd ${pkgname}-${pkgver}/build
+  make -C 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:



More information about the arch-commits mailing list