]> saetta.ns0.it Git - msys2/commitdiff
libreptool: rebuild (anche a 64bit), fix path e install licenza.
authorAndrea Zagli <azagli@libero.it>
Wed, 8 Apr 2015 11:23:29 +0000 (13:23 +0200)
committerAndrea Zagli <azagli@libero.it>
Wed, 8 Apr 2015 11:23:29 +0000 (13:23 +0200)
packages/mingw-w64-libreptool/002-paths.patch [new file with mode: 0644]
packages/mingw-w64-libreptool/PKGBUILD

diff --git a/packages/mingw-w64-libreptool/002-paths.patch b/packages/mingw-w64-libreptool/002-paths.patch
new file mode 100644 (file)
index 0000000..15e62b1
--- /dev/null
@@ -0,0 +1,20 @@
+--- ./src/Makefile.am.orig     2015-04-08 13:09:03.531850300 +0200
++++ ./src/Makefile.am  2015-04-08 13:11:58.152822300 +0200
+@@ -31,7 +31,7 @@
+                         rptreport.c \
+                         rptprint.c \
+                         rptcommon.c \
+-                        rptmarshal.c
++                        $(srcdir)/rptmarshal.c
+ libreptool_include_HEADERS = \
+                   libreptool.h \
+@@ -49,7 +49,7 @@
+                  parser.tab.h \
+                  lexycal.yy.h \
+                  rptreport_priv.h \
+-                 rptmarshal.h
++                 $(srcdir)/rptmarshal.h
+ EXTRA_DIST = \
+              parser.y \
index 5ddb582863578763488bc6e29ad9e9daf980db07..6cff90b5f81f42b1d05d98a75f421f9f0c06a9c0 100644 (file)
@@ -3,7 +3,7 @@
 _realname=libreptool
 pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
 pkgver=0.5.0
-pkgrel=2
+pkgrel=3
 arch=('any')
 pkgdesc="Library to make reports (mingw-w64)"
 depends=("${MINGW_PACKAGE_PREFIX}-libgda-full")
@@ -14,14 +14,17 @@ options=('!strip' 'debug' 'staticlibs')
 license=("LGPL 2.1")
 url="http://saetta.ns0.it/"
 source=(git+http://saetta.ns0.it/git/reptool/${_realname}#branch=gtk3
-        001-no-install-hook.patch)
+        001-no-install-hook.patch
+        002-paths.patch)
 sha256sums=('SKIP'
-            'bb34d7812aff00065dc12c4439b758f253668ce2dc2775718dada8b3d4ece713')
+            'bb34d7812aff00065dc12c4439b758f253668ce2dc2775718dada8b3d4ece713'
+            '1aa840860f3325c25f3e0a8bbfe850f203b833a29a38479441ecbcfaacd2b5bd')
 
 prepare() {
   cd ${_realname}
 
   patch -p1 -i ${srcdir}/001-no-install-hook.patch
+  patch -p1 -i ${srcdir}/002-paths.patch
 }
 
 build() {
@@ -40,4 +43,6 @@ build() {
 package() {
   cd "$srcdir/build-${MINGW_CHOST}"
   make DESTDIR=$pkgdir install
+
+  install -Dm644 "${srcdir}/${_realname}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
 }