Annotation of /branches/R11-stable/extras/libpaper/libpaper-1.1.24-r2.smage2
Parent Directory | Revision Log
Revision 10339 -
(hide annotations)
(download)
Sat Jan 21 00:46:05 2012 UTC (12 years, 8 months ago) by niro
Original Path: trunk/core/libpaper/libpaper-1.1.24-r2.smage2
File size: 967 byte(s)
Sat Jan 21 00:46:05 2012 UTC (12 years, 8 months ago) by niro
Original Path: trunk/core/libpaper/libpaper-1.1.24-r2.smage2
File size: 967 byte(s)
-import from magellan-next
1 | niro | 7672 | # $Id$ |
2 | |||
3 | PNAME="libpaper" | ||
4 | PVER="1.1.24" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | niro | 10339 | PCAT="app-text" |
8 | niro | 7672 | |
9 | DESCRIPTION="Library for handling paper characteristics." | ||
10 | HOMEPAGE="http://packages.debian.org/unstable/source/libpaper" | ||
11 | |||
12 | DEPEND="" | ||
13 | |||
14 | SRCFILE="${PNAME}_${PVER}.tar.gz" | ||
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
16 | |||
17 | sminclude mbuild mtools multilib | ||
18 | |||
19 | SRC_URI=( | ||
20 | http://ftp.debian.org/debian/pool/main/libp/${PNAME}/${SRCFILE} | ||
21 | http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} | ||
22 | mirror://${PNAME}/${SRCFILE} | ||
23 | ) | ||
24 | |||
25 | UP2DATE="updatecmd ${HOMEPAGE} | grep tar.gz -m1 | sed -e 's/.*r_\(.*\).t.*/\1/' -e 's/\(.*\)+.*/\1/'" | ||
26 | |||
27 | src_install() | ||
28 | { | ||
29 | cd ${SRCDIR} | ||
30 | minstall_destdir || die | ||
31 | |||
32 | # set default papersize to A4 | ||
33 | minstalldir /etc || die | ||
34 | echo "a4" > ${BINDIR}/etc/papersize || die | ||
35 | |||
36 | minstalldocs ChangeLog COPYING README || die | ||
37 | } | ||
38 | |||
39 | postinstall() | ||
40 | { | ||
41 | echo | ||
42 | echo "To set another papersize than A4 run 'paperconfig -p {size}'." | ||
43 | echo "Example: to utilize letter: 'paperconfig -p letter'" | ||
44 | echo | ||
45 | } |