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

recipes/gui/podofo/PAGBUILD.yaml main

57 lines Raw ← Back
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
pkgname: podofo
pkgver: '1.1.2'
pkgrel: 2
pkgdesc: C++ library to work with the PDF file format
url: 'https://podofo.sourceforge.net'
arch: x86_64
license:
- LGPL-2.0-or-later
- GPL-2.0-or-later

depends:
- freetype
- libjpeg-turbo
- libpng
- libtiff
- libxml2
- openssl
- xorg-fontconfig
makedepends:
- cmake
- xorg-fontconfig
- freetype
- libidn
- libpng
- libtiff

source:
- "https://github.com/podofo/podofo/archive/refs/tags/${pkgver}.tar.gz"

sha256sums:
- SKIP

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

  cmake -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE=Release \
        -DPODOFO_BUILD_STATIC=OFF \
        -DPODOFO_HAVE_JPEG_LIB=ON \
        -DPODOFO_HAVE_PNG_LIB=ON \
        -DPODOFO_HAVE_TIFF_LIB=ON \
        ..

  make
  make DESTDIR="${PKGDIR}" install

  # PoDoFo używa COPYING.LIB dla biblioteki
  if [ -f ../COPYING.LIB ]; then
      install -Dm644 ../COPYING.LIB "${PKGDIR}/usr/share/licenses/${pkgname}/COPYING.LIB"
  elif [ -f ../COPYING ]; then
      install -Dm644 ../COPYING "${PKGDIR}/usr/share/licenses/${pkgname}/COPYING"
  fi

package: |
  true