core/libwmf/PKGBUILD

47 lines
1.4 KiB
Bash
Raw Normal View History

2010-03-14 23:48:48 +08:00
pkgname=libwmf
pkgver=0.2.8.4
2017-12-11 07:31:26 +08:00
pkgrel=14
2010-03-14 23:48:48 +08:00
pkgdesc="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF)."
arch=('x86_64')
2010-03-14 23:48:48 +08:00
url="http://wvware.sourceforge.net/libwmf.html"
license=("LGPL")
depends=('libpng>=1.5.0' 'libx11' 'freetype2' 'libjpeg-turbo' 'gsfonts' 'expat>=2.0')
makedepends=('pkgconfig')
2010-03-14 23:48:48 +08:00
options=(!libtool)
source=("http://downloads.sourceforge.net/sourceforge/wvware/${pkgname}-${pkgver}.tar.gz"
2017-12-11 07:31:26 +08:00
'libwmf-0.2.8.4-libpng-1.5.patch'
'libwmf-0.2.8.4-CVE-2016-9011.patch')
2010-03-14 23:48:48 +08:00
md5sums=('d1177739bf1ceb07f57421f0cee191e0'
2017-12-11 07:31:26 +08:00
'21bab2d951aef8e72805eacee950cb09'
'b466dd89a58b7ba97b0915d7d46a27f7')
2010-03-14 23:48:48 +08:00
2017-12-11 07:31:26 +08:00
prepare() {
2017-12-11 07:31:26 +08:00
cd $pkgname-$pkgver
patch -p1 -i ../libwmf-0.2.8.4-libpng-1.5.patch
# patch for CVE-2016-9011, thanks to Arch
patch -p1 -i ../libwmf-0.2.8.4-CVE-2016-9011.patch
2010-03-14 23:48:48 +08:00
sed -i -e 's/src include fonts doc/src include fonts/g' Makefile.in
2017-12-11 07:31:26 +08:00
}
build() {
cd $pkgname-$pkgver
2010-03-14 23:48:48 +08:00
./configure --prefix=/usr \
--with-gsfontdir=/usr/share/fonts/Type1 \
2017-12-11 07:31:26 +08:00
--with-fontdir=/usr/share/fonts/Type1 \
--with-gsfontmap=/usr/share/ghostscript/8.15/lib/Fontmap.GS \
--disable-gtk2
2012-02-26 01:13:16 +08:00
make
}
package() {
2017-12-11 07:31:26 +08:00
cd $pkgname-$pkgver
2017-12-11 07:31:26 +08:00
make DESTDIR=$pkgdir install
2010-03-14 23:48:48 +08:00
#Remove fonts, these are in gsfonts
rm -rf ${pkgdir}/usr/share/fonts
#Remove static GTK loader, can't use it anyways
2012-02-26 01:13:16 +08:00
rm -f ${pkgdir}/usr/lib/gtk-2.0/*/loaders/*.a
2010-03-14 23:48:48 +08:00
}