makedepends=(gsfonts libjpeg-turbo2 xorg-libx11 gdk-pixbuf gtk2 xorg-libxt)

description="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF)"
url="http://wvware.sourceforge.net/libwmf.html"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=libwmf
version=0.2.13
release=3

PKGMK_KEEP_SOURCES="no"
source=(https://github.com/caolanm/libwmf/archive/v$version.tar.gz)

build(){

    cd $name-$version

    ./configure --prefix=/usr \
                --with-gsfontdir=/usr/share/fonts/Type1 \
                --with-fontdir=/usr/share/fonts/Type1 \
                --with-gsfontmap=/usr/share/ghostscript/9.14/Resource/Init/Fontmap.GS

    make
    make -j1 DESTDIR=$PKG install

    # rm fonts already in gsfonts packages
    rm -rf $PKG/usr/share/fonts
}
