summaryrefslogtreecommitdiff
path: root/extra/transfig/PKGBUILD
blob: 5bbf5be0efa38a4df2bc6fb42aea66565cf98d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: PKGBUILD 81063 2010-05-26 10:19:14Z jgc $
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: J. Santiago Hirschfeld <jsantiagoh@yahoo.com.ar>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=transfig
pkgver=3.2.5c
pkgrel=3
pkgdesc="Format conversion utility that can be used with xfig"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.xfig.org"
license=('custom')
depends=('libpng' 'libxpm')
makedepends=('imake')
source=(http://downloads.sourceforge.net/mcj/${pkgname}.${pkgver}.tar.gz LICENSE)
md5sums=('0cc55ed6b4ae67a3e610e501acd694f9' 'a0b2ea903821c46dbc77afefc06d1aa4')
sha1sums=('20013b350e81400943cd91744173445d7bd4d98e' 'b8b712871615308b8b6add92f86d218437d652f2')

build() {
	cd ${srcdir}/${pkgname}.${pkgver}
	sed -i 's/XCOMM USELATEX2E = -DLATEX2E/USELATEX2E = -DLATEX2E/' transfig/Imakefile || return 1
	sed -i 's/XCOMM USEINLINE = -DUSE_INLINE/USEINLINE = -DUSE_INLINE/' fig2dev/Imakefile || return 1

	xmkmf || return 1
	make FIG2DEV_LIBDIR=/usr/share/fig2dev Makefiles || return 1
	make FIG2DEV_LIBDIR=/usr/share/fig2dev XFIGLIBDIR=/usr/share/xfig || return 1
}

package() {
	cd ${srcdir}/${pkgname}.${pkgver}

	make DESTDIR=${pkgdir} XFIGLIBDIR=/usr/share/xfig \
	    FIG2DEV_LIBDIR=/usr/share/fig2dev MANPATH=/usr/share/man \
	    install install.man || return 1
	install -Dm644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
}