#!/bin/bash
#
# Copyright 2013 Eugene Wissner <belka.ew@gmail.com>
# Copyright 2020-2026 Sasa Ostrouska <saxa@droplinegnome.org>
# Available under the terms of the GNU GPL.
#

NAME="libpst"
VERSION="0.6.76"
REVISION="4"

PKG_SOURCEURL='http://www.five-ten-sg.com/${NAME}/packages/${NAME}-${VERSION}.tar.gz'
PKG_SANIFYNOTOUCH="uff"
PKG_PATCH[0]='libpst-add-python311-configure.patch'
PKG_PATCH[1]='0003-gcc-c23-changes.patch'

. $DLG_ROOT/etc/config
. $DLG_ROOT/lib/dl-base

cflags
cxxflags
prepare

applypatch 0 1
applypatch 1 1

analyzesource
configure --enable-libpst-shared
make
makeinstall
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
