db-move: moved webkitgtk-6.0 from [testing] to [extra] (x86_64)
[arch-packages.git] / libwpd / trunk / PKGBUILD
blob1f6bf9a4da147faec956a7caa98403a187d48941
1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
3 pkgname=libwpd
4 pkgver=0.10.3
5 pkgrel=4
6 pkgdesc="Library for importing WordPerfect (tm) documents"
7 arch=('x86_64')
8 url="https://libwpd.sourceforge.net/"
9 license=('LGPL')
10 depends=('gcc-libs' 'zlib' 'librevenge')
11 makedepends=('libgsf>=1.14.26' 'doxygen' 'boost')
12 options=('!emptydirs')
13 source=(https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.xz
14         libwpd-gcc11.patch)
15 sha1sums=('c1254f05b2318c160d836e5583c221386db50dd2'
16           '9a91b8cd6252b610e72769efd1dd26f8a0b81285')
17 sha256sums=('2465b0b662fdc5d4e3bebcdc9a79027713fb629ca2bff04a3c9251fdec42dd09'
18             '7612c36e5e16df2b786fc4c905f096a6e7d600aade292e91950607bfbfba6c32')
20 prepare() {
21   cd ${pkgname}-${pkgver}
22   patch -Np1 -i ../libwpd-gcc11.patch
25 build() {
26   cd ${pkgname}-${pkgver}
27   ./configure --prefix=/usr --disable-static
28   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
29   make
32 check() {
33   cd $pkgname-$pkgver
34   make check
37 package() {
38   cd ${pkgname}-${pkgver}
39   make DESTDIR="${pkgdir}" install