Contents of /trunk/core/libpaper/libpaper-1.1.23-r2.smage2
Parent Directory | Revision Log
Revision 1064 -
(show annotations)
(download)
Sun Jan 4 10:07:07 2009 UTC (15 years, 8 months ago) by niro
File size: 1086 byte(s)
Sun Jan 4 10:07:07 2009 UTC (15 years, 8 months ago) by niro
File size: 1086 byte(s)
-added gentoo-mirror to SRC_URI
1 | # $Header: /magellan-cvs/smage/libpaper/libpaper-1.1.23-r1.smage2,v 1.1 2008/02/12 11:12:35 niro Exp $ |
2 | |
3 | PNAME="libpaper" |
4 | PVER="1.1.23" |
5 | PBUILD="r2" |
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 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |