[arch-commits] Commit in libpst/repos/extra-x86_64 (PKGBUILD PKGBUILD)

Jan Steffens heftig at gemini.archlinux.org
Mon Nov 8 19:00:51 UTC 2021


    Date: Monday, November 8, 2021 @ 19:00:51
  Author: heftig
Revision: 427536

archrelease: copy trunk to extra-x86_64

Added:
  libpst/repos/extra-x86_64/PKGBUILD
    (from rev 427534, libpst/trunk/PKGBUILD)
Deleted:
  libpst/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |   91 ++++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 51 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-08 19:00:51 UTC (rev 427535)
+++ PKGBUILD	2021-11-08 19:00:51 UTC (rev 427536)
@@ -1,40 +0,0 @@
-# Maintainer: Jan de Groot <jgc at archlinux.org>
-
-pkgbase=libpst
-pkgname=('libpst' 'libpst-docs')
-pkgver=0.6.76
-pkgrel=2
-arch=('x86_64')
-url="https://www.five-ten-sg.com/libpst/"
-license=('GPL')
-makedepends=('python' 'boost' 'libgsf')
-source=(https://www.five-ten-sg.com/libpst/packages/${pkgbase}-${pkgver}.tar.gz)
-sha256sums=('3d291beebbdb48d2b934608bc06195b641da63d2a8f5e0d386f2e9d6d05a0b42')
-
-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
-}
-
-package_libpst() {
-  pkgdesc="Outlook .pst file converter"
-  depends=('gcc-libs' 'libgsf')
-  optdepends=('boost-libs: for libpst python interface')
-  options=('!docs')
-
-  cd $pkgbase-$pkgver
-  make DESTDIR="${pkgdir}" install
-}
-
-package_libpst-docs() {
-  pkgdesc="Documentation for Outlook .pst file converter"
-  options=('docs')
-
-  cd $pkgbase-$pkgver
-  make DESTDIR="${pkgdir}" install-htmlDATA
-  cd html
-  make DESTDIR="${pkgdir}" install-htmldevelDATA
-}

Copied: libpst/repos/extra-x86_64/PKGBUILD (from rev 427534, libpst/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-08 19:00:51 UTC (rev 427536)
@@ -0,0 +1,51 @@
+# 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=3
+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)
+sha256sums=('3d291beebbdb48d2b934608bc06195b641da63d2a8f5e0d386f2e9d6d05a0b42')
+
+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"
+}



More information about the arch-commits mailing list