1 # Maintainer: Jan de Groot <jgc@archlinux.org>
6 pkgdesc="Gnome DOM Engine"
8 url="http://gdome2.cs.unibo.it/"
10 depends=('libxml2' 'glib2')
11 source=("http://gdome2.cs.unibo.it/tarball/${pkgname}-${pkgver}.tar.gz"
12 gdome2-0.8.1-libxml2.patch
14 sha256sums=('f4bb80a2ef8e5fd9397ab8aa36d059d0b32e98c4bcf185c7952a7e3874d1d543'
15 '9c7c1bf3ad05bc25b0a4b65971b37206cf02ee40e87cbd3df382a15f2d9913b1'
16 'de99def0e868ac25733cf340349b00e772514de4bcff4834aec610481124ea38')
19 cd ${pkgname}-${pkgver}
20 patch -p0 -i "${srcdir}/gdome2-0.8.1-libxml2.patch"
21 patch -p1 -i "${srcdir}/03no_glib_1.patch"
28 cd ${pkgname}-${pkgver}
29 CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
30 ./configure --prefix=/usr --mandir=/usr/share/man
32 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
38 cd ${pkgname}-${pkgver}
39 make DESTDIR="${pkgdir}" install