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/"
24 _commit=d963f2adf9fb7e65cdccbf7d35ceb06c63100f80 # tags/libpst-0.6.76
25 source=("git+https://github.com/pst-format/libpst#commit=$_commit")
30 git describe --tags | sed 's/^libpst-//;s/[^-]*-g/r&/;s/-/+/g'
37 git cherry-pick -n df169eaeaa3a0aad7244c081497a01ceee15da72 \
38 81252ea84b5a6a1e0d3cbcfaf4505729a1057018 \
39 db5933678ac44f9153d0c3dd20a6cb91a6887096 \
40 52adecb804f4d8fa1697692e177e972eb891fcb2
42 # Fix _FORTIFY_SOURCE warnings
43 git cherry-pick -n b34d3d8eb679e3598dd9970bb35e6ab60fdd9805
49 local configure_options=(
53 --mandir=/usr/share/man
57 --enable-libpst-shared
61 ./configure "${configure_options[@]}"
62 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
70 make -C $pkgbase DESTDIR="$pkgdir" install
72 mkdir -p doc/usr/share
73 mv {"$pkgdir",doc}/usr/share/doc
76 package_libpst-docs() {
77 pkgdesc+=" (documentation)"
83 # vim:set sw=2 sts=-1 et: