]> saetta.ns0.it Git - msys2/commitdiff
Pkg: aggiunto pacchetto polmu.
authorAndrea Zagli <azagli@libero.it>
Thu, 9 Apr 2020 10:28:09 +0000 (12:28 +0200)
committerAndrea Zagli <azagli@libero.it>
Thu, 9 Apr 2020 10:28:09 +0000 (12:28 +0200)
packages/mingw-w64-cedolib/PKGBUILD
packages/mingw-w64-polmu/.gitignore [new file with mode: 0644]
packages/mingw-w64-polmu/001-path_resource.patch [new file with mode: 0644]
packages/mingw-w64-polmu/PKGBUILD [new file with mode: 0644]

index 3ee0e5d78b2fea2dea451f436439650ac675fa62..9fd3240d4903062630cd6990a0c3ad8f9cd24f6c 100644 (file)
@@ -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 (file)
index 0000000..5566b7b
--- /dev/null
@@ -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 (file)
index 0000000..aaec64d
--- /dev/null
@@ -0,0 +1,8 @@
+--- a/src/resources.rc.in\r
++++ b/src/resources.rc.in\r
+@@ -1,4 +1,4 @@\r
+-AppIcon ICON "..\\data\\polmu\\images\\polmu.ico"\r
++AppIcon ICON "@top_srcdir@\\data\\polmu\\images\\polmu.ico"\r
\r
+ 1 VERSIONINFO\r
+ FILEVERSION     @V_MAJOR@,@V_MINOR@,@V_MICRO@,0\r
diff --git a/packages/mingw-w64-polmu/PKGBUILD b/packages/mingw-w64-polmu/PKGBUILD
new file mode 100644 (file)
index 0000000..42c58a0
--- /dev/null
@@ -0,0 +1,68 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_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"
+}