From 6465705c89ee0085f9f63532612c2bc965cbabe5 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Thu, 9 Apr 2020 12:28:09 +0200 Subject: [PATCH] Pkg: aggiunto pacchetto polmu. --- packages/mingw-w64-cedolib/PKGBUILD | 2 +- packages/mingw-w64-polmu/.gitignore | 1 + .../mingw-w64-polmu/001-path_resource.patch | 8 +++ packages/mingw-w64-polmu/PKGBUILD | 68 +++++++++++++++++++ 4 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 packages/mingw-w64-polmu/.gitignore create mode 100644 packages/mingw-w64-polmu/001-path_resource.patch create mode 100644 packages/mingw-w64-polmu/PKGBUILD diff --git a/packages/mingw-w64-cedolib/PKGBUILD b/packages/mingw-w64-cedolib/PKGBUILD index 3ee0e5d..9fd3240 100644 --- a/packages/mingw-w64-cedolib/PKGBUILD +++ b/packages/mingw-w64-cedolib/PKGBUILD @@ -3,7 +3,7 @@ _realname=cedolib _base_ver=0.0.2 pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" -pkgver=0.0.2.43.01c4b5a +pkgver=0.0.2.45.06e9e95 pkgrel=1 arch=('any') pkgdesc="Gestione cedole librarie online (mingw-w64)" diff --git a/packages/mingw-w64-polmu/.gitignore b/packages/mingw-w64-polmu/.gitignore new file mode 100644 index 0000000..5566b7b --- /dev/null +++ b/packages/mingw-w64-polmu/.gitignore @@ -0,0 +1 @@ +polmu diff --git a/packages/mingw-w64-polmu/001-path_resource.patch b/packages/mingw-w64-polmu/001-path_resource.patch new file mode 100644 index 0000000..aaec64d --- /dev/null +++ b/packages/mingw-w64-polmu/001-path_resource.patch @@ -0,0 +1,8 @@ +--- a/src/resources.rc.in ++++ b/src/resources.rc.in +@@ -1,4 +1,4 @@ +-AppIcon ICON "..\\data\\polmu\\images\\polmu.ico" ++AppIcon ICON "@top_srcdir@\\data\\polmu\\images\\polmu.ico" + + 1 VERSIONINFO + FILEVERSION @V_MAJOR@,@V_MINOR@,@V_MICRO@,0 diff --git a/packages/mingw-w64-polmu/PKGBUILD b/packages/mingw-w64-polmu/PKGBUILD new file mode 100644 index 0000000..42c58a0 --- /dev/null +++ b/packages/mingw-w64-polmu/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: Andrea Zagli + +_realname=polmu +_base_ver=0.0.2 +pkgbase=mingw-w64-${_realname} +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=0.0.2.36.a32211a +pkgrel=1 +arch=('any') +pkgdesc="Gestione polizia municipale (mingw-w64)" +depends=("${MINGW_PACKAGE_PREFIX}-libgdaex" + "${MINGW_PACKAGE_PREFIX}-libgdaexgrid" + "${MINGW_PACKAGE_PREFIX}-libsolipa" + "${MINGW_PACKAGE_PREFIX}-libzakform" + "${MINGW_PACKAGE_PREFIX}-libzakformgtk" + "${MINGW_PACKAGE_PREFIX}-libzakformgdaex" + "${MINGW_PACKAGE_PREFIX}-libzakformgtkdecoder" + "${MINGW_PACKAGE_PREFIX}-libzakformhashtable" + "${MINGW_PACKAGE_PREFIX}-libsoup" + "${MINGW_PACKAGE_PREFIX}-libzakconfi" + "${MINGW_PACKAGE_PREFIX}-libzakauthe" + "${MINGW_PACKAGE_PREFIX}-libzakautho" + "${MINGW_PACKAGE_PREFIX}-libzakutils" + "${MINGW_PACKAGE_PREFIX}-libzakaudit" + "${MINGW_PACKAGE_PREFIX}-libzakconfi" + "${MINGW_PACKAGE_PREFIX}-libreptool" + "${MINGW_PACKAGE_PREFIX}-territorio") +makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" + "gtk-doc" + "${MINGW_PACKAGE_PREFIX}-gnome-common") +options=('!strip' 'debug' 'staticlibs') +license=("GPL 2") +url="http://saetta.ns0.it/" +source=(git+http://saetta.ns0.it/~andreaz/git/${_realname}#branch=develop + 001-path_resource.patch) +sha256sums=('SKIP' + 'de4e8613ef1029ecf27f64a761f5285c0b8431bfc5d1c08d834ae44cfebaeffc') + +pkgver() { + cd "$srcdir/$_realname" + printf "%s.%s.%s" "${_base_ver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd ${_realname} + + patch -p1 -i ${srcdir}/001-path_resource.patch +} + +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" +} -- 2.49.0