Magellan Linux

Contents of /branches/R11-unstable/extras/libpaper/libpaper-1.1.24-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25553 - (show annotations) (download)
Tue Nov 25 03:55:19 2014 UTC (9 years, 5 months ago) by niro
File size: 967 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="libpaper"
4 PVER="1.1.24"
5 PBUILD="r2"
6
7 PCAT="app-text"
8
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 }