[arch-commits] Commit in libwmf/trunk (PKGBUILD libwmf.install)

Eric Bélanger eric at nymeria.archlinux.org
Sat Apr 27 20:06:54 UTC 2013


    Date: Saturday, April 27, 2013 @ 22:06:54
  Author: eric
Revision: 183763

upgpkg: libwmf 0.2.8.4-10

Rebuild against libpng 1.6, Fix install scriptlet, Fix gsfontmap directory

Modified:
  libwmf/trunk/PKGBUILD
  libwmf/trunk/libwmf.install

----------------+
 PKGBUILD       |   14 +++++++++-----
 libwmf.install |    1 +
 2 files changed, 10 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-04-27 19:54:04 UTC (rev 183762)
+++ PKGBUILD	2013-04-27 20:06:54 UTC (rev 183763)
@@ -3,7 +3,7 @@
 
 pkgname=libwmf
 pkgver=0.2.8.4
-pkgrel=9
+pkgrel=10
 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"
@@ -19,19 +19,23 @@
           '42aa4c2a82e4e14044c875a7f439baea732a355a'
           'ea6d28880840e86c96f9079bfd591da54dcffa5c')
 
-build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+prepare() {
+  cd ${pkgname}-${pkgver}
   patch -p1 -i "${srcdir}/libwmf-0.2.8.4-libpng-1.5.patch"
   patch -p1 -i "${srcdir}/libwmf-0.2.8.4-useafterfree.patch"
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
   ./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
+	      --with-gsfontmap=/usr/share/ghostscript/9.07/Resource/Init/Fontmap.GS
   make
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${pkgname}-${pkgver}
   make DESTDIR="${pkgdir}" install
   #Remove fonts, these are in gsfonts
   rm -rf "${pkgdir}/usr/share/fonts"

Modified: libwmf.install
===================================================================
--- libwmf.install	2013-04-27 19:54:04 UTC (rev 183762)
+++ libwmf.install	2013-04-27 20:06:54 UTC (rev 183763)
@@ -1,5 +1,6 @@
 post_install() {
   if [ -x usr/bin/gdk-pixbuf-query-loaders ]; then
+    install -d etc/gtk-2.0
     gdk-pixbuf-query-loaders > etc/gtk-2.0/gdk-pixbuf.loaders
   fi
 }




More information about the arch-commits mailing list