🔒 Repository is read-only – file editing is disabled.

recipes/utils/cjson/PAGBUILD.yaml main

33 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233
pkgname: cjson
pkgver: '1.7.19'
pkgrel: '1'
pkgdesc: Ultralightweight JSON parser in ANSI C
url: 'https://github.com/DaveGamble/cJSON'
arch: x86_64
license:
- MIT
depends: []
makedepends:
- cmake
source:
- 'https://github.com/DaveGamble/cJSON/archive/v${pkgver}.tar.gz'
sha256sums:
- 7fa616e3046edfa7a28a32d5f9eacfd23f92900fe1f8ccd988c1662f30454562
build: |
  cd cJSON-${pkgver}

  mkdir build
  cd    build

  cmake -DCMAKE_INSTALL_PREFIX=/usr  \
        -DENABLE_CJSON_UTILS=On      \
        -DCMAKE_INSTALL_LIBDIR=lib   \
        -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
        ..

  make
  make DESTDIR=${PKGDIR} install

  install -Dm644 ../LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE
package: |
  true