diff options
Diffstat (limited to 'extra/transfig/PKGBUILD')
-rw-r--r-- | extra/transfig/PKGBUILD | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/extra/transfig/PKGBUILD b/extra/transfig/PKGBUILD index a17e6047f..630efa3c2 100644 --- a/extra/transfig/PKGBUILD +++ b/extra/transfig/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 148944 2012-02-05 11:57:10Z ibiru $ +# $Id: PKGBUILD 184440 2013-05-06 19:39:57Z foutrelis $ # Maintainer: Eric BĂ©langer <eric@archlinux.org> pkgname=transfig pkgver=3.2.5d -pkgrel=1 +pkgrel=2 pkgdesc="Format conversion utility that can be used with xfig" arch=('i686' 'x86_64') url="http://www.xfig.org" @@ -16,20 +16,22 @@ sha1sums=('90ff277cc9b3fa0d0313052fcf5e3ffad8652abc' 'b8b712871615308b8b6add92f86d218437d652f2' '9f9f332b0b31e58e59542bc1568df9617b71710a') -build() { - cd "${srcdir}/${pkgname}.${pkgver}" +prepare() { + cd ${pkgname}.${pkgver} sed -i 's/XCOMM USELATEX2E = -DLATEX2E/USELATEX2E = -DLATEX2E/' transfig/Imakefile sed -i 's/XCOMM USEINLINE = -DUSE_INLINE/USEINLINE = -DUSE_INLINE/' fig2dev/Imakefile patch -p1 -i ../transfig-3.2.5d-libpng-1.5.patch +} +build() { + cd ${pkgname}.${pkgver} xmkmf make FIG2DEV_LIBDIR=/usr/share/fig2dev Makefiles make FIG2DEV_LIBDIR=/usr/share/fig2dev XFIGLIBDIR=/usr/share/xfig } package() { - cd "${srcdir}/${pkgname}.${pkgver}" - + cd ${pkgname}.${pkgver} make DESTDIR="${pkgdir}" XFIGLIBDIR=/usr/share/xfig \ FIG2DEV_LIBDIR=/usr/share/fig2dev MANPATH=/usr/share/man \ install install.man |