From: Andrea Zagli Date: Mon, 16 Oct 2023 10:06:20 +0000 (+0200) Subject: libzakutilsgtk: nuovo pacchetto. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=7f8832a17b3c0ea5298b46b83a2c4c1280fc35e6;p=msys2 libzakutilsgtk: nuovo pacchetto. --- diff --git a/packages/mingw-w64-libzakutilsgtk/.gitignore b/packages/mingw-w64-libzakutilsgtk/.gitignore new file mode 100644 index 0000000..0cf10cb --- /dev/null +++ b/packages/mingw-w64-libzakutilsgtk/.gitignore @@ -0,0 +1 @@ +libzakutilsgtk diff --git a/packages/mingw-w64-libzakutilsgtk/PKGBUILD b/packages/mingw-w64-libzakutilsgtk/PKGBUILD new file mode 100644 index 0000000..04f0043 --- /dev/null +++ b/packages/mingw-w64-libzakutilsgtk/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Andrea Zagli + +_realname=libzakutilsgtk +_base_ver=0.0.1 +pkgbase=mingw-w64-${_realname} +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=0.0.1.9.19c6be4 +pkgrel=3 +arch=('any') +pkgdesc="Library with some gtk utility functions (mingw-w64)" +depends=("${MINGW_PACKAGE_PREFIX}-gtk3" + "${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} + + export lt_cv_deplibs_check_method='pass_all' + + ../${_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" +}