Contents of /branches/magellan-next/core/libpaper/libpaper-1.1.24-r1.smage2
Parent Directory | Revision Log
Revision 6705 -
(show annotations)
(download)
Wed Sep 22 09:15:32 2010 UTC (14 years ago) by niro
File size: 1049 byte(s)
Wed Sep 22 09:15:32 2010 UTC (14 years ago) by niro
File size: 1049 byte(s)
auto added: ver bump to 1.1.24-r1
1 | # $Id: libpaper-1.1.23-r3.smage2 3435 2009-10-21 19:47:30Z niro $ |
2 | |
3 | PNAME="libpaper" |
4 | PVER="1.1.24" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="app-text" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Library for handling paper characteristics." |
11 | HOMEPAGE="http://packages.debian.org/unstable/source/libpaper" |
12 | |
13 | DEPEND="" |
14 | |
15 | SRCFILE="${PNAME}_${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mbuild mtools multilib |
19 | |
20 | SRC_URI=( |
21 | http://ftp.debian.org/debian/pool/main/libp/${PNAME}/${SRCFILE} |
22 | http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | UP2DATE="updatecmd ${HOMEPAGE} | grep tar.gz -m1 | sed -e 's/.*r_\(.*\).t.*/\1/' -e 's/\(.*\)+.*/\1/'" |
27 | |
28 | src_install() |
29 | { |
30 | cd ${SRCDIR} |
31 | minstall_destdir || die |
32 | |
33 | # set default papersize to A4 |
34 | minstalldir /etc || die |
35 | echo "a4" > ${BINDIR}/etc/papersize || die |
36 | |
37 | minstalldocs ChangeLog COPYING README || die |
38 | } |
39 | |
40 | postinstall() |
41 | { |
42 | echo |
43 | echo "To set another papersize than A4 run 'paperconfig -p {size}'." |
44 | echo "Example: to utilize letter: 'paperconfig -p letter'" |
45 | echo |
46 | } |