PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/utils/protobuf/PAGBUILD.yaml main

46 lines Raw ← Back
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
pkgname: protobuf
pkgver: '37.0'
pkgrel: 1
pkgdesc: Google's data interchange format utility
url: 'https://protobuf.dev/'
arch: x86_64
license:
  - BSD-3-Clause

depends:
  - abseil-cpp
  - zlib

makedepends:
  - cmake
  - ninja
  - pkg-config

source:
  - "https://github.com/protocolbuffers/protobuf/archive/v${pkgver}.tar.gz"

sha256sums:
  - SKIP

build: |
  cd ${pkgname}-${pkgver}

  cmake -S . -B build -G Ninja \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DCMAKE_INSTALL_LIBDIR=lib \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_CXX_STANDARD=20 \
      -Dprotobuf_BUILD_SHARED_LIBS=ON \
      -Dprotobuf_BUILD_LIBPROTOC=ON \
      -Dprotobuf_BUILD_TESTS=OFF \
      -Dprotobuf_INSTALL=ON \
      -Dprotobuf_WITH_ZLIB=ON \
      -Dprotobuf_ABSL_PROVIDER=package \
      -Wno-dev
  cmake --build build

package: |
  cd ${pkgname}-${pkgver}

  DESTDIR="${PKGDIR}" cmake --install build
  install -Dm644 LICENSE "${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE"