Contents of /smage/trunk/core/installer-simple/installer-simple-0.4.91.20160613.2-r1.smage2
Parent Directory | Revision Log
Revision 9055 -
(show annotations)
(download)
Mon Jun 13 15:13:22 2016 UTC (8 years, 3 months ago) by niro
File size: 1075 byte(s)
Mon Jun 13 15:13:22 2016 UTC (8 years, 3 months ago) by niro
File size: 1075 byte(s)
auto added: ver bump to 0.4.91.20160613.2-r1
1 | # $Id$ |
2 | |
3 | PNAME="installer-simple" |
4 | PVER="0.4.91.20160613.2" |
5 | PBUILD="r1" |
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 | >= virtual/bzip2 |
19 | >= virtual/grep |
20 | >= virtual/sed |
21 | >= virtual/shadow |
22 | >= virtual/tar |
23 | >= sys-libs/glibc-locale-de-2.18" |
24 | |
25 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
27 | |
28 | sminclude systemd |
29 | |
30 | SRC_URI=( |
31 | mirror://${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/${PNAME}-0.4.90.20140703.1-alx.patch |
33 | ) |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | cd ${SRCDIR} |
39 | |
40 | # apply settings for alx |
41 | mpatch ${PNAME}-0.4.90.20140703.1-alx.patch || die |
42 | } |
43 | |
44 | src_compile() |
45 | { |
46 | cd ${SRCDIR} |
47 | |
48 | # use german locale in installer.service |
49 | make LOCALE=de_DE.utf8 || die |
50 | } |
51 | |
52 | src_install() |
53 | { |
54 | cd ${SRCDIR} |
55 | make DESTDIR=${BINDIR} install || die |
56 | } |
57 | |
58 | postinstall() |
59 | { |
60 | mstartunit installer.service || die |
61 | } |
62 | |
63 | postremove() |
64 | { |
65 | mstopunit installer.service || die |
66 | } |