Magellan Linux

Annotation of /smage/trunk/core/installer-simple/installer-simple-0.4.91.20160616.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10556 - (hide annotations) (download)
Thu Aug 24 07:28:32 2017 UTC (6 years, 8 months ago) by niro
File size: 1127 byte(s)
auto added: ver bump to 0.4.91.20160616.1-r2
1 niro 10556 # $Id$
2    
3     PNAME="installer-simple"
4     PVER="0.4.91.20160616.1"
5     PBUILD="r2"
6    
7     PCAT="app-mage"
8    
9     DESCRIPTION="Simple Image Installation Script."
10     HOMEPAGE="http://www.magellan-linux.net/"
11    
12     DEPEND=">= dev-util/dialog-1
13     >= sys-apps/hwinfo-20
14     >= sys-apps/coreutils-8
15     >= sys-apps/findutils-4
16     >= sys-apps/util-linux-2.24
17     >= sys-apps/dracut-034
18     >= sys-fs/e2fsprogs-1.42
19     >= sys-fs/f2fs-tools-1.6
20     >= virtual/bzip2
21     >= virtual/grep
22     >= virtual/sed
23     >= virtual/shadow
24     >= virtual/tar
25     >= sys-libs/glibc-locale-de-2.18"
26    
27     SRCFILE="${PNAME}-${PVER}.tar.bz2"
28     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29    
30     sminclude systemd
31    
32     SRC_URI=(
33     mirror://${PNAME}/${SRCFILE}
34     mirror://${PNAME}/${PNAME}-0.4.90.20140703.1-alx.patch
35     )
36    
37     src_prepare()
38     {
39     munpack ${SRCFILE} || die
40     cd ${SRCDIR}
41    
42     # apply settings for alx
43     mpatch ${PNAME}-0.4.90.20140703.1-alx.patch || die
44     }
45    
46     src_compile()
47     {
48     cd ${SRCDIR}
49    
50     # use german locale in installer.service
51     make LOCALE=de_DE.utf8 || die
52     }
53    
54     src_install()
55     {
56     cd ${SRCDIR}
57     make DESTDIR=${BINDIR} install || die
58     }
59    
60     postinstall()
61     {
62     mstartunit installer.service || die
63     }
64    
65     postremove()
66     {
67     mstopunit installer.service || die
68     }