Magellan Linux

Annotation of /branches/mage-next/usr/share/doc/mage/template.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1440 - (hide annotations) (download)
Mon Jul 25 12:15:07 2011 UTC (12 years, 9 months ago) by niro
Original Path: trunk/mage/usr/share/doc/mage/template.smage2
File size: 536 byte(s)
-renamed to mage
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 *