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

recipes/gui/libodfgen/PAGBUILD.yaml main

31 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031
pkgname: libodfgen
pkgver: '0.1.8'
pkgrel: '1'
pkgdesc: 'Library for generating documents in Open Document Format'
url: 'https://sourceforge.net/p/libwpd/wiki/libodfgen/'
arch: x86_64
license:
- 'LGPL-2.1-or-later OR MPL-2.0'

depends: []
makedepends:
- librevenge
- libxml2

source:
- 'https://sourceforge.net/projects/libwpd/files/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.xz'

sha256sums:
- SKIP

build: |
  sed -i "s/#include <math.h>/#include <math.h>\n#include <cstdint>/" \
  ${pkgname}-${pkgver}/src/OdfGenerator.cxx
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --disable-werror
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
  make DESTDIR=${PKGDIR} install

package: |
  true