[arch-commits] Commit in libpst/repos (3 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Fri Dec 3 14:28:18 UTC 2021


    Date: Friday, December 3, 2021 @ 14:28:17
  Author: foutrelis
Revision: 430633

archrelease: copy trunk to staging-x86_64

Added:
  libpst/repos/staging-x86_64/
  libpst/repos/staging-x86_64/PKGBUILD
    (from rev 430632, libpst/trunk/PKGBUILD)
  libpst/repos/staging-x86_64/python310.patch
    (from rev 430632, libpst/trunk/python310.patch)

-----------------+
 PKGBUILD        |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 python310.patch |   12 +++++++++++
 2 files changed, 70 insertions(+)

Copied: libpst/repos/staging-x86_64/PKGBUILD (from rev 430632, libpst/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-12-03 14:28:17 UTC (rev 430633)
@@ -0,0 +1,58 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=libpst
+pkgname=(libpst libpst-docs)
+pkgver=0.6.76
+pkgrel=4
+pkgdesc="Outlook .pst file converter"
+url="https://www.five-ten-sg.com/libpst/"
+arch=(x86_64)
+license=(GPL)
+depends=(gcc-libs libgsf)
+makedepends=(python boost)
+source=(https://www.five-ten-sg.com/libpst/packages/${pkgbase}-${pkgver}.tar.gz
+        python310.patch)
+sha256sums=('3d291beebbdb48d2b934608bc06195b641da63d2a8f5e0d386f2e9d6d05a0b42'
+            '8bd2cf189719fa98831b26b28ed68098a82fe6f31a1e23d8576faa27fc4e819f')
+
+prepare() {
+  cd $pkgbase-$pkgver
+  patch -Np1 -i ../python310.patch
+}
+
+build() {
+  cd $pkgbase-$pkgver
+  ./configure --prefix=/usr --mandir=/usr/share/man \
+      --disable-static --enable-libpst-shared --disable-dii
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+_pick() {
+  local p="$1" f d; shift
+  for f; do
+    d="$srcdir/$p/${f#$pkgdir/}"
+    mkdir -p "$(dirname "$d")"
+    mv "$f" "$d"
+    rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
+  done
+}
+
+package_libpst() {
+  optdepends=('boost-libs: for libpst python interface')
+  provides=(libpst.so)
+
+  cd $pkgbase-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  cd "$pkgdir"
+
+  _pick docs usr/share/doc
+}
+
+package_libpst-docs() {
+  pkgdesc+=" (documentation)"
+  depends=()
+  mv docs/* "$pkgdir"
+}

Copied: libpst/repos/staging-x86_64/python310.patch (from rev 430632, libpst/trunk/python310.patch)
===================================================================
--- staging-x86_64/python310.patch	                        (rev 0)
+++ staging-x86_64/python310.patch	2021-12-03 14:28:17 UTC (rev 430633)
@@ -0,0 +1,12 @@
+diff -upr libpst-0.6.76.orig/configure libpst-0.6.76/configure
+--- libpst-0.6.76.orig/configure	2021-03-28 02:08:10.000000000 +0200
++++ libpst-0.6.76/configure	2021-12-03 16:24:53.025153596 +0200
+@@ -24672,7 +24672,7 @@ if test "$enable_python" = "yes"; then
+ $as_echo_n "checking for python build information... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
+ $as_echo "" >&6; }
+-for python in python3.9 python3.8 python3.7 python3.6 python3.5 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
++for python in python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
+ for ac_prog in $python
+ do
+   # Extract the first word of "$ac_prog", so it can be a program name with args.



More information about the arch-commits mailing list