[arch-commits] Commit in transfig/trunk (PKGBUILD)
Daniel Griffiths
dgriffiths at archlinux.org
Mon Apr 12 02:25:25 UTC 2010
Date: Sunday, April 11, 2010 @ 22:25:24
Author: dgriffiths
Revision: 77342
Adopted, move to splitpkg format
Modified:
transfig/trunk/PKGBUILD
----------+
PKGBUILD | 26 +++++++++++++++++---------
1 file changed, 17 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-04-12 02:23:11 UTC (rev 77341)
+++ PKGBUILD 2010-04-12 02:25:24 UTC (rev 77342)
@@ -1,6 +1,7 @@
# $Id$
-# Maintainer: Eric Belanger <eric at archlinux.org>
+# Contributor: Eric Belanger <eric at archlinux.org>
# Contributor: J. Santiago Hirschfeld <jsantiagoh at yahoo.com.ar>
+# Maintainer: Daniel J Griffiths <ghost1227 at archlinux.us>
pkgname=transfig
pkgver=3.2.5c
@@ -16,13 +17,20 @@
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
+ 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
- make DESTDIR="${pkgdir}" XFIGLIBDIR=/usr/share/xfig FIG2DEV_LIBDIR=/usr/share/fig2dev MANPATH=/usr/share/man install install.man || return 1
- install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || 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
+}
More information about the arch-commits
mailing list