1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
5 pkgname=(libpst libpst-docs)
8 pkgdesc="Outlook .pst file converter"
9 url="https://www.five-ten-sg.com/libpst/"
12 depends=(gcc-libs libgsf)
13 makedepends=(python boost)
15 source=(https://www.five-ten-sg.com/libpst/packages/${pkgbase}-${pkgver}.tar.gz
17 sha256sums=('3d291beebbdb48d2b934608bc06195b641da63d2a8f5e0d386f2e9d6d05a0b42'
18 '8bd2cf189719fa98831b26b28ed68098a82fe6f31a1e23d8576faa27fc4e819f')
22 patch -Np1 -i ../python310.patch
27 ./configure --prefix=/usr --mandir=/usr/share/man \
28 --disable-static --enable-libpst-shared --disable-dii
29 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
34 optdepends=('boost-libs: for libpst python interface')
37 make -C $pkgbase-$pkgver DESTDIR="$pkgdir" install
39 mkdir -p doc/usr/share
40 mv {"$pkgdir",doc}/usr/share/doc
43 package_libpst-docs() {
44 pkgdesc+=" (documentation)"