Annotation of /branches/mage-next/usr/share/doc/mage/template.smage2
Parent Directory | Revision Log
Revision 35 -
(hide annotations)
(download)
Thu Jan 6 03:01:03 2005 UTC (19 years, 4 months ago) by niro
Original Path: trunk/mage/usr/share/doc/mage-0.3/template.smage2
File size: 536 byte(s)
Thu Jan 6 03:01:03 2005 UTC (19 years, 4 months ago) by niro
Original Path: trunk/mage/usr/share/doc/mage-0.3/template.smage2
File size: 536 byte(s)
added some descriptions
1 | niro | 24 | # smage-script for app-dir/foobar |
2 | |||
3 | PNAME="foobar" | ||
4 | PVER="1.2.3.5" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
8 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
9 | |||
10 | niro | 35 | #prevents to build a package (needed for sources) |
11 | niro | 24 | #NOPKGBUILD=true |
12 | |||
13 | src_prepare() { | ||
14 | munpack ${SRCFILE} || die | ||
15 | cd ${SRCDIR} | ||
16 | |||
17 | #patch something | ||
18 | mpatch -Np1 foo.patch || die | ||
19 | |||
20 | } | ||
21 | |||
22 | src_compile() { | ||
23 | cd ${SRCDIR} | ||
24 | |||
25 | mconfigure || die | ||
26 | mmake || die | ||
27 | } | ||
28 | |||
29 | src_install() { | ||
30 | cd ${SRCDIR} | ||
31 | |||
32 | minstall || die | ||
33 | |||
34 | #alternative | ||
35 | #make DESTDIR=${BINDIR} install || die | ||
36 | |||
37 | minstalldocs AUTHOR BUGS TODO | ||
38 | } |
Properties
Name | Value |
---|---|
svn:executable | * |