diff --git a/mingw-w64-osmgpsmap-git/001-fix-docdir.patch b/mingw-w64-osmgpsmap-git/001-fix-docdir.patch new file mode 100644 index 0000000000..4e60411084 --- /dev/null +++ b/mingw-w64-osmgpsmap-git/001-fix-docdir.patch @@ -0,0 +1,11 @@ +--- osm-gps-map/Makefile.am.orig 2015-01-11 18:58:00.502800000 +0300 ++++ osm-gps-map/Makefile.am 2015-01-11 18:58:16.420200000 +0300 +@@ -7,7 +7,7 @@ + + ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} + +-osm_gps_mapdocdir = ${prefix}/doc/osm-gps-map ++osm_gps_mapdocdir = ${prefix}/share/doc/osm-gps-map + osm_gps_mapdoc_DATA = \ + README \ + COPYING \ diff --git a/mingw-w64-osmgpsmap-git/PKGBUILD b/mingw-w64-osmgpsmap-git/PKGBUILD index 29d1a3c185..cc28d24a79 100644 --- a/mingw-w64-osmgpsmap-git/PKGBUILD +++ b/mingw-w64-osmgpsmap-git/PKGBUILD @@ -18,16 +18,26 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gnome-common" "${MINGW_PACKAGE_PREFIX}-gtk-doc" "git") options=('staticlibs' 'strip' '!debug') -source=("git://github.com/nzjrs/osm-gps-map") -md5sums=("SKIP") +source=("git://github.com/nzjrs/osm-gps-map" + 001-fix-docdir.patch) +md5sums=('SKIP' + '797e4ef839ab903de0311fd06277cb0c') pkgver() { cd $_realname printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +prepare() { + cd ${_realname} + patch -p1 -i ${srcdir}/001-fix-docdir.patch + + gtkdocize + autoreconf -fiv +} + build() { - export CC=gcc + export CC=${MINGW_PREFIX}/bin/gcc mkdir -p "${srcdir}/build-${MINGW_CHOST}" cd "${srcdir}/build-${MINGW_CHOST}" "${srcdir}"/${_realname}/autogen.sh \ @@ -37,6 +47,7 @@ build() { --enable-gtk-doc=no \ --enable-shared=yes \ --enable-static=yes + make }