diff options
author | root <root@rshg054.dnsready.net> | 2011-10-04 23:14:30 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-10-04 23:14:30 +0000 |
commit | 3567a49f79d2dbf828b723ab54982fa6c7ea1c80 (patch) | |
tree | 15fc309d3681df4da7a56189050fd5aa16fa9794 /community/lout | |
parent | 57d05f7209f022aa99a8850aafbeec4cb85c3b5b (diff) |
Tue Oct 4 23:14:30 UTC 2011
Diffstat (limited to 'community/lout')
-rw-r--r-- | community/lout/PKGBUILD | 24 | ||||
-rwxr-xr-x | community/lout/lout.install | 9 | ||||
-rw-r--r-- | community/lout/makefile.arch | 45 |
3 files changed, 78 insertions, 0 deletions
diff --git a/community/lout/PKGBUILD b/community/lout/PKGBUILD new file mode 100644 index 000000000..71aa6f957 --- /dev/null +++ b/community/lout/PKGBUILD @@ -0,0 +1,24 @@ +# $Id: PKGBUILD 56257 2011-10-04 00:41:28Z kkeen $ +# Maintainer: Kyle Keen <keenerd@gmail.com> +# Contributor: catwell <catwell@archlinux.us> + +pkgname=lout +pkgver=3.39 +pkgrel=1 +pkgdesc="A lightweight document formatting system." +arch=('i686' 'x86_64') +url="http://lout.wiki.sourceforge.net/" +license=('GPL') +depends=('glibc') +install=lout.install +source=(http://mirrors.ctan.org/support/$pkgname/$pkgname-$pkgver.tar.gz makefile.arch lout.install) +md5sums=('151e1fba676c7052936ccc1bcd9663a9' + '088a29ca16477a9a30da9fafc9391de8' + 'bc6c8df650fe75dd3c51d0c047c56f30') + +build() { + cd "$srcdir/$pkgname-$pkgver" + cp ../makefile.arch . + make -f makefile.arch PKGDIR="$pkgdir" install +} + diff --git a/community/lout/lout.install b/community/lout/lout.install new file mode 100755 index 000000000..f05b4b601 --- /dev/null +++ b/community/lout/lout.install @@ -0,0 +1,9 @@ +post_install() +{ + /usr/bin/lout -x -s /usr/lib/lout/include/init +} + +post_upgrade() +{ + post_install $1 +} diff --git a/community/lout/makefile.arch b/community/lout/makefile.arch new file mode 100644 index 000000000..e0cb63322 --- /dev/null +++ b/community/lout/makefile.arch @@ -0,0 +1,45 @@ +# Makefile for lout 3.38 on Arch Linux. +# catwell <catwell@archlinux.us> + +PKGDIR = / +COPTS = -ansi -pedantic -O3 + +CFLAGS = -DOS_UNIX=1 -DOS_DOS=0 -DOS_MAC=0 -DDB_FIX=0 -DUSE_STAT=1 \ + -DSAFE_DFT=0 -DCOLLATE=1 -DLIB_DIR=\"/usr/lib/lout\" -DFONT_DIR=\"font\" \ + -DMAPS_DIR=\"maps\" -DINCL_DIR=\"include\" -DDATA_DIR=\"data\" -DHYPH_DIR=\"hyph\" \ + -DLOCALE_DIR=\"locale\" -DCHAR_IN=1 -DCHAR_OUT=0 -DLOCALE_ON=0 \ + -DASSERT_ON=1 $(COPTS) -DDEBUG_ON=0 -DPDF_COMPRESSION=1 -I/usr/lib/ + +OBJS = z01.o z02.o z03.o z04.o z05.o z06.o z07.o z08.o \ + z09.o z10.o z11.o z12.o z13.o z14.o z15.o z16.o \ + z17.o z18.o z19.o z20.o z21.o z22.o z23.o z24.o \ + z25.o z26.o z27.o z28.o z29.o z30.o z31.o z32.o \ + z33.o z34.o z35.o z36.o z37.o z38.o z39.o z40.o \ + z41.o z42.o z43.o z44.o z45.o z46.o z47.o z48.o \ + z49.o z50.o z51.o z52.o + +arch: $(OBJS) + gcc -o lout $(OBJS) /usr/lib/libz.a -lm + gcc -o prg2lout prg2lout.c + +$(OBJS): externs.h + +externs.h: + +install: arch + # lout + install -Dm0755 lout $(PKGDIR)/usr/bin/lout + set include data hyph font maps; \ + for i; do \ + install -d $(PKGDIR)/usr/lib/lout/$$i; \ + install -m0644 -t $(PKGDIR)/usr/lib/lout/$$i/ $$i/*; \ + done + # prg2lout + install -Dm0755 prg2lout $(PKGDIR)/usr/bin/prg2lout + # man + sed -i -e "s@<BINDIR>@/usr/bin@" -e "s@<LIBDIR>@/usr/lib/lout@" \ + -e "s@<LOUTDOCDIR>@/usr/doc/lout@" -e "s@<MANDIR>@/usr/share/man/man1@" \ + man/lout.1 + install -Dm0644 man/lout.1 $(PKGDIR)/usr/share/man/man1/lout.1 + install -Dm0644 man/prg2lout.1 $(PKGDIR)/usr/share/man/man1/prg2lout.1 + |