sbcl 2.1.11 rebuild
[arch-packages.git] / libwpd / trunk / PKGBUILD
blob507e6756efcf2630c1492663c9dd8a58987167a9
1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
3 pkgname=libwpd
4 pkgver=0.10.3
5 pkgrel=3
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')
18 prepare() {
19   cd ${pkgname}-${pkgver}
20   patch -Np1 -i ../libwpd-gcc11.patch
23 build() {
24   cd ${pkgname}-${pkgver}
25   ./configure --prefix=/usr --disable-static
26   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
27   make
30 check() {
31   cd $pkgname-$pkgver
32   make check
35 package() {
36   cd ${pkgname}-${pkgver}
37   make DESTDIR="${pkgdir}" install