diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/lout | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/lout')
-rw-r--r-- | community/lout/PKGBUILD | 36 | ||||
-rw-r--r-- | community/lout/lout.install | 11 | ||||
-rw-r--r-- | community/lout/makefile.arch | 45 |
3 files changed, 92 insertions, 0 deletions
diff --git a/community/lout/PKGBUILD b/community/lout/PKGBUILD new file mode 100644 index 000000000..df2dcfc35 --- /dev/null +++ b/community/lout/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 94153 2013-07-15 07:02:55Z kkeen $ +# Maintainer: Kyle Keen <keenerd@gmail.com> +# Contributor: catwell <catwell@archlinux.us> + +pkgname=lout +pkgver=3.40 +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 + http://pkgs.fedoraproject.org/repo/pkgs/lout/slides.pdf/6822c33e49a1dca0b090f297d404d7fa/slides.pdf) +md5sums=('fd0fe084cebd07fc209d392a2d380755' + '088a29ca16477a9a30da9fafc9391de8' + '597cd52eb87ef6253cf769bed4db3952' + '6822c33e49a1dca0b090f297d404d7fa') + +build() { + cd "$srcdir/$pkgname-$pkgver" + cp ../makefile.arch . + make -f makefile.arch +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make -f makefile.arch PKGDIR="$pkgdir" install + chmod 0775 "$pkgdir/usr/lib/lout/data/" + chgrp users "$pkgdir/usr/lib/lout/data/" + install -Dm644 "$srcdir/slides.pdf" "$pkgdir/usr/share/doc/$pkgname/introduction.pdf" +} + diff --git a/community/lout/lout.install b/community/lout/lout.install new file mode 100644 index 000000000..e3688a219 --- /dev/null +++ b/community/lout/lout.install @@ -0,0 +1,11 @@ +post_install() +{ + /usr/bin/lout -x -s /usr/lib/lout/include/init + chmod 0775 "/usr/lib/lout/data/" + chgrp users "/usr/lib/lout/data/" +} + +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 + |