From: Andrea Zagli Date: Fri, 3 Oct 2014 10:27:00 +0000 (+0200) Subject: Pacchettizzato ambulanti. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=fbc18b904bddfce2a361a7ca0a7cd8a59a0c932b;p=msys2 Pacchettizzato ambulanti. --- diff --git a/packages/mingw-w64-ambulanti/.gitignore b/packages/mingw-w64-ambulanti/.gitignore new file mode 100644 index 0000000..1625ea4 --- /dev/null +++ b/packages/mingw-w64-ambulanti/.gitignore @@ -0,0 +1 @@ +ambulanti \ No newline at end of file diff --git a/packages/mingw-w64-ambulanti/001-path.patch b/packages/mingw-w64-ambulanti/001-path.patch new file mode 100644 index 0000000..3f58da2 --- /dev/null +++ b/packages/mingw-w64-ambulanti/001-path.patch @@ -0,0 +1,30 @@ +diff --git a/src/Makefile.am b/src/Makefile.am +index f8cebbd..092e5de 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -22,11 +22,12 @@ resources.o: resources.rc + + bin_PROGRAMS = ambulanti + +-ambulanti-marshal.c: ambulanti-marshal.h marshal.list $(GLIB_GENMARSHAL) +- $(GLIB_GENMARSHAL) marshal.list --body --prefix=_ambulanti_marshal > $@ ++ ++ambulanti-marshal.c: marshal.list ambulanti-marshal.h $(GLIB_GENMARSHAL) ++ $(GLIB_GENMARSHAL) $< --body --prefix=_ambulanti_marshal > $@ + + ambulanti-marshal.h: marshal.list $(GLIB_GENMARSHAL) +- $(GLIB_GENMARSHAL) marshal.list --header --prefix=_ambulanti_marshal > $@ ++ $(GLIB_GENMARSHAL) $< --header --prefix=_ambulanti_marshal > $@ + + ambulanti_SOURCES = \ + ambulanti-marshal.c \ +diff --git a/src/resources.rc.in b/src/resources.rc.in +index c8f694c..df8a08e 100644 +--- a/src/resources.rc.in ++++ b/src/resources.rc.in +@@ -1,4 +1,4 @@ +-AppIcon ICON "..\\data\\ambulanti\\images\\ambulanti.ico" ++AppIcon ICON "@top_srcdir@\\data\\ambulanti\\images\\ambulanti.ico" + + 1 VERSIONINFO + FILEVERSION @V_MAJOR@,@V_MINOR@,@V_MICRO@,0 diff --git a/packages/mingw-w64-ambulanti/PKGBUILD b/packages/mingw-w64-ambulanti/PKGBUILD new file mode 100644 index 0000000..9310a48 --- /dev/null +++ b/packages/mingw-w64-ambulanti/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Andrea Zagli + +_realname=ambulanti +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=0.0.5 +pkgrel=1 +arch=('any') +pkgdesc="Gestione commercio ambulante (mingw-w64)" +depends=("${MINGW_PACKAGE_PREFIX}-gtk3" + "${MINGW_PACKAGE_PREFIX}-libgdaex" + "${MINGW_PACKAGE_PREFIX}-libgtkform" + "${MINGW_PACKAGE_PREFIX}-libaute" + "${MINGW_PACKAGE_PREFIX}-libautoz" + "${MINGW_PACKAGE_PREFIX}-libsolipa" + "${MINGW_PACKAGE_PREFIX}-libzakaudit" + "${MINGW_PACKAGE_PREFIX}-libreptool") +makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" + "${MINGW_PACKAGE_PREFIX}-gtk-doc" + "${MINGW_PACKAGE_PREFIX}-gnome-common") +options=('strip' 'staticlibs') +license=("LGPL 2.1") +url="http://saetta.ns0.it/" +source=(git+http://saetta.ns0.it/~andreaz/git/${_realname}#branch=gtk3 + 001-path.patch) +sha256sums=('SKIP' + '3b9bf86b0d307d752579af6f131aa4d550dd5bde86f6b41a22abd18e69ae19d7') + +prepare() { + cd ${_realname} + + patch -p1 -i ${srcdir}/001-path.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 +}