Contents of /branches/mage-next/doc/template.smage2
Parent Directory | Revision Log
Revision 24 -
(show annotations)
(download)
Wed Jan 5 05:08:01 2005 UTC (19 years, 8 months ago) by niro
Original Path: trunk/mage/usr/share/doc/mage-0.3/template.smage2
File size: 486 byte(s)
Wed Jan 5 05:08:01 2005 UTC (19 years, 8 months ago) by niro
Original Path: trunk/mage/usr/share/doc/mage-0.3/template.smage2
File size: 486 byte(s)
mage-0.3.6-r8 import
1 | # 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 | #NOPKGBUILD=true |
11 | |
12 | src_prepare() { |
13 | munpack ${SRCFILE} || die |
14 | cd ${SRCDIR} |
15 | |
16 | #patch something |
17 | mpatch -Np1 foo.patch || die |
18 | |
19 | } |
20 | |
21 | src_compile() { |
22 | cd ${SRCDIR} |
23 | |
24 | mconfigure || die |
25 | mmake || die |
26 | } |
27 | |
28 | src_install() { |
29 | cd ${SRCDIR} |
30 | |
31 | minstall || die |
32 | |
33 | #alternative |
34 | #make DESTDIR=${BINDIR} install || die |
35 | |
36 | minstalldocs AUTHOR BUGS TODO |
37 | } |
Properties
Name | Value |
---|---|
svn:executable | * |