summaryrefslogtreecommitdiffstats
path: root/abs/core/libwmf/PKGBUILD
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-15 22:20:17 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-15 22:20:17 (GMT)
commit817505c32e62cbc75c3b66b1a2d70bfab850e50f (patch)
tree25dc0f4281ccaa0989e93f4642a6676dfafaa5af /abs/core/libwmf/PKGBUILD
parent4f26cfd64aef1c65bca8b155db794ecf0fdc561c (diff)
downloadlinhes_pkgbuild-817505c32e62cbc75c3b66b1a2d70bfab850e50f.zip
linhes_pkgbuild-817505c32e62cbc75c3b66b1a2d70bfab850e50f.tar.gz
linhes_pkgbuild-817505c32e62cbc75c3b66b1a2d70bfab850e50f.tar.bz2
libwmf: upgrade for libx11
Diffstat (limited to 'abs/core/libwmf/PKGBUILD')
-rw-r--r--abs/core/libwmf/PKGBUILD40
1 files changed, 25 insertions, 15 deletions
diff --git a/abs/core/libwmf/PKGBUILD b/abs/core/libwmf/PKGBUILD
index 4ec415d..1206151 100644
--- a/abs/core/libwmf/PKGBUILD
+++ b/abs/core/libwmf/PKGBUILD
@@ -1,31 +1,41 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# $Id: PKGBUILD 87507 2010-08-15 06:45:18Z eric $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: FJ <joostef@gmail.com>
+
pkgname=libwmf
pkgver=0.2.8.4
-pkgrel=5
-pkgdesc="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF)."
-arch=(i686 x86_64)
+pkgrel=8
+pkgdesc="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF)"
+arch=('i686' 'x86_64')
url="http://wvware.sourceforge.net/libwmf.html"
license=("LGPL")
-depends=('libpng' 'libx11' 'freetype2' 'libjpeg' 'gsfonts' 'expat>=2.0')
-makedepends=('gtk2>=2.10.0' 'pkgconfig')
-options=(!libtool)
+depends=('libpng' 'libx11' 'freetype2' 'libjpeg' 'gsfonts' 'expat')
+makedepends=('gtk2' 'libxt' 'pkg-config')
+options=('!libtool' '!docs' '!emptydirs')
install=libwmf.install
-source=(http://heanet.dl.sf.net/sourceforge/wvware/${pkgname}-${pkgver}.tar.gz)
-md5sums=(d1177739bf1ceb07f57421f0cee191e0)
+source=(http://downloads.sourceforge.net/sourceforge/wvware/${pkgname}-${pkgver}.tar.gz
+ libpng14.patch libwmf-0.2.8.4-useafterfree.patch)
+md5sums=('d1177739bf1ceb07f57421f0cee191e0' '33d3c07a1be9f99fd88de220930c5550'\
+ '0f02c1cb8a87bf7158634503bf0537e2')
+sha1sums=('822ab3bd0f5e8f39ad732f2774a8e9f18fc91e89' '15edb94eec7c9cea988e83660b334e56bf1fe897'\
+ 'ea6d28880840e86c96f9079bfd591da54dcffa5c')
build() {
- cd ${startdir}/src/${pkgname}-${pkgver}
- sed -i -e 's/src include fonts doc/src include fonts/g' Makefile.in
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -Np1 -i "${srcdir}/libpng14.patch"
+ patch -Np1 -i "${srcdir}/libwmf-0.2.8.4-useafterfree.patch"
./configure --prefix=/usr \
--with-gsfontdir=/usr/share/fonts/Type1 \
--with-fontdir=/usr/share/fonts/Type1 \
--with-gsfontmap=/usr/share/ghostscript/8.15/lib/Fontmap.GS
- make || return 1
- make DESTDIR=${startdir}/pkg install
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
#Remove fonts, these are in gsfonts
- rm -rf ${startdir}/pkg/usr/share/fonts
+ rm -rf "${pkgdir}/usr/share/fonts"
#Remove static GTK loader, can't use it anyways
- rm -f ${startdir}/pkg/usr/lib/gtk-2.0/*/loaders/*.a
+ rm -f "${pkgdir}"/usr/lib/gtk-2.0/*/loaders/io-wmf.a
}