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

Levente Polyak anthraxx at archlinux.org
Sat Mar 28 18:57:32 UTC 2020


    Date: Saturday, March 28, 2020 @ 18:57:32
  Author: anthraxx
Revision: 378626

archrelease: copy trunk to staging-x86_64

Added:
  libcbor/repos/staging-x86_64/
  libcbor/repos/staging-x86_64/PKGBUILD
    (from rev 378625, libcbor/trunk/PKGBUILD)

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

Copied: libcbor/repos/staging-x86_64/PKGBUILD (from rev 378625, libcbor/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-03-28 18:57:32 UTC (rev 378626)
@@ -0,0 +1,43 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Moritz Kiefer <moritz.kiefer at purelyfunctional.org>
+
+pkgname=libcbor
+pkgver=0.6.1
+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)
+sha256sums=('19309b84d4d88ae1179f3686bd246d977710801c1603915c51f618ba76727e94')
+b2sums=('2a258bc5dea44e54d32012d8f4937330c721ceac380317413dc3a5e52ae998e81785623b86833035151b8f17c5591a797e534ba7f1b66ac26dba58c3ad300afc')
+
+build() {
+  mkdir -p ${pkgname}-${pkgver}/build
+  cd ${pkgname}-${pkgver}/build
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_C_FLAGS="${CFLAGS} ${CPPFLAGS}" \
+    -DWITH_TESTS=1
+  make cbor cbor_shared VERBOSE=1
+  make -C test VERBOSE=1
+}
+
+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