Skip to content

Commit

Permalink
tools/MINGW-packages: rebuild librsvg
Browse files Browse the repository at this point in the history
fixes GNUVolador failed unit test
  • Loading branch information
rodlie committed Oct 16, 2021
1 parent 615ea88 commit f144b2a
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions tools/MINGW-packages/mingw-w64-librsvg/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,17 @@ _realname=librsvg
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.40.20
pkgrel=5
pkgrel=7
pkgdesc="A SVG viewing library (mingw-w64)"
arch=('any')
url="https://live.gnome.org/LibRsvg"
license=("LGPL")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-pkg-config"
"${MINGW_PACKAGE_PREFIX}-gdk-pixbuf2"
"${MINGW_PACKAGE_PREFIX}-gobject-introspection"
#"${MINGW_PACKAGE_PREFIX}-vala"
"setconf")
depends=("${MINGW_PACKAGE_PREFIX}-gdk-pixbuf2"
"${MINGW_PACKAGE_PREFIX}-pango"
depends=("${MINGW_PACKAGE_PREFIX}-pango"
"${MINGW_PACKAGE_PREFIX}-libcroco")
optdepends=("${MINGW_PACKAGE_PREFIX}-gtk3: for rsvg-view-3")
options=('staticlibs' 'strip')
options=('!staticlibs' 'strip')
source=("https://download.gnome.org/sources/librsvg/${pkgver%.*}/${_realname}-${pkgver}.tar.xz"
"0005-hack-unixy-paths.patch")
sha256sums=('cff4dd3c3b78bfe99d8fcfad3b8ba1eee3289a0823c0e118d78106be6b84c92b'
Expand All @@ -38,9 +33,6 @@ build() {
cp -r ${srcdir}/${_realname}-${pkgver} "${srcdir}/build-${MINGW_CHOST}"
cd "${srcdir}/build-${MINGW_CHOST}"

mkdir -p doc/html
cp -rf ../${_realname}-${pkgver}/doc/html/* doc/html

CXXFLAGS+=" -D_POSIX_SOURCE"
CFLAGS+=" -D_POSIX_SOURCE"

Expand All @@ -53,6 +45,12 @@ build() {
--host=${MINGW_CHOST} \
--disable-introspection \
--disable-vala \
--disable-pixbuf-loader \
--disable-tools \
--disable-gtk-doc \
--disable-docs \
--disable-static \
--enable-shared \
--enable-silent-rules
setconf Makefile AM_CFLAGS '-fno-common'
make
Expand Down

0 comments on commit f144b2a

Please sign in to comment.