102.11.0-1
[arch-packages.git] / libwmf / trunk / PKGBUILD
blob91cdabcd7ed221c9cfe2a448d448cab135fbb423
1 # Maintainer: Eric BĂ©langer <eric@archlinux.org>
3 pkgname=libwmf
4 pkgver=0.2.13
5 pkgrel=1
6 pkgdesc="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF)"
7 arch=('x86_64')
8 url="http://wvware.sourceforge.net/libwmf.html"
9 license=('LGPL')
10 depends=('libx11' 'libjpeg' 'gsfonts' 'freetype2' 'expat')
11 makedepends=('gtk2' 'libxt')
12 optdepends=('gdk-pixbuf2: for pixbuf loader')
13 options=('!docs' '!emptydirs')
14 source=($pkgname-$pkgver.tar.gz::https://github.com/caolanm/libwmf/archive/v$pkgver.tar.gz)
15 sha256sums=('18ba69febd2f515d98a2352de284a8051896062ac9728d2ead07bc39ea75a068')
17 prepare() {
18   cd ${pkgname}-${pkgver}
19   autoreconf -fi
20
22 build() {
23   cd ${pkgname}-${pkgver}
24   ./configure --prefix=/usr \
25               --with-gsfontdir=/usr/share/fonts/Type1 \
26               --with-fontdir=/usr/share/fonts/Type1 \
27               --with-gsfontmap=/usr/share/ghostscript/9.10/Resource/Init/Fontmap.GS
28   make
31 package() {
32   cd ${pkgname}-${pkgver}
33   make DESTDIR="${pkgdir}" install -j1
34   #Remove fonts, these are in gsfonts
35   rm -rf "${pkgdir}/usr/share/fonts"