From: Andrea Zagli Date: Mon, 16 Oct 2023 10:09:27 +0000 (+0200) Subject: libzakutilsjsonxml: nuovo pacchetto. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=e672b3941ee09438eedfa3fb3aa5a1137e6c046c;p=msys2 libzakutilsjsonxml: nuovo pacchetto. --- diff --git a/packages/mingw-w64-libzakutilsjsonxml/.gitignore b/packages/mingw-w64-libzakutilsjsonxml/.gitignore new file mode 100644 index 0000000..08ad567 --- /dev/null +++ b/packages/mingw-w64-libzakutilsjsonxml/.gitignore @@ -0,0 +1 @@ +libzakutilsjsonxml diff --git a/packages/mingw-w64-libzakutilsjsonxml/PKGBUILD b/packages/mingw-w64-libzakutilsjsonxml/PKGBUILD new file mode 100644 index 0000000..6bc00bc --- /dev/null +++ b/packages/mingw-w64-libzakutilsjsonxml/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Andrea Zagli + +_realname=libzakutilsjsonxml +_base_ver=0.0.1 +pkgbase=mingw-w64-${_realname} +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=0.0.1.15.598ca8a +pkgrel=1 +arch=('any') +pkgdesc="Library with some utility functionsfor json and xml (mingw-w64)" +depends=("${MINGW_PACKAGE_PREFIX}-glib2" + "${MINGW_PACKAGE_PREFIX}-json-glib" + "${MINGW_PACKAGE_PREFIX}-libxml2" + "${MINGW_PACKAGE_PREFIX}-libzakutils" + ) +makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" + "gtk-doc") +options=('!strip' 'debug' 'staticlibs') +license=("LGPL 2.1") +url="http://saetta.ns0.it/" +source=(git+http://saetta.ns0.it/git/${_realname}#branch=master) +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/$_realname" + printf "%s.%s.%s" "${_base_ver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd ${_realname} + +} + +build() { + mkdir -p build-${MINGW_CHOST} + cd build-${MINGW_CHOST} + + ../${_realname}/autogen.sh \ + --host=${MINGW_CHOST} \ + --target=${MINGW_CHOST} \ + --build=${MINGW_CHOST} \ + --prefix=${MINGW_PREFIX} \ + --libexecdir=${MINGW_PREFIX}/lib + make +} + +package() { + cd "$srcdir/build-${MINGW_CHOST}" + make DESTDIR=$pkgdir install + + install -Dm644 "${srcdir}/${_realname}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING" +}