Magellan Linux

Contents of /trunk/extras/libpaper/libpaper-1.1.24-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7672 - (show annotations) (download)
Sun May 29 20:25:30 2011 UTC (12 years, 11 months ago) by niro
Original Path: branches/magellan-next/core/libpaper/libpaper-1.1.24-r2.smage2
File size: 990 byte(s)
auto added: ver bump to 1.1.24-r2
1 # $Id$
2
3 PNAME="libpaper"
4 PVER="1.1.24"
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 }