first version.
[build-srcpkg.git] / res / builder / build-srcpkg / tmpl / demo.tmpl.imi
blob4c1b9f75aa7095541813839bd6ab26fbf81e86a4
2 # 1.general info
5 # 1.1.name & version
6 SRCPKG_NAME="$(ui_GetStr SRCPKG_NAME)"
7 SRCPKG_VMAJOR="0"
8 SRCPKG_VMINOR="0"
9 SRCPKG_VPATCH="1"
10 #SRCPKG_VERSION="$(ui_GetStr SRCPKG_VERSION)"
11 #SRCPKG_VDATE="231127"
12 # or use section
13 SRCPKG_CATEGORY='/sysdist/shell'
15 : $(ui_PkgInitFrame_NameNVersion)
17 # 1.2.author&email
18 SRCPKG_AUTHOR="CottonCandyOwner"
19 SRCPKG_AUTHOR_EMAIL="CottonCandyOwner@126.com"
20 SRCPKG_MAINTAINER="CottonCandyOwner"
21 #SRCPKG_MAINTAINER_EMAIL="CottonCandyOwner@126.com"
22 SRCPKG_BUGREPORT="CottonCandyOwner@126.com"
24 : $(ui_PkgInitFrame_AuthorNEmail)
26 # 1.3.description
27 SRCPKG_SHORTDESC='a demo in general..'
28 SRCPKG_DESC_FMT='MarkDown'
29 SRCPKG_DESC="this srcpkg is a demo in general. it's used to show how does 
30 build-srcpkg create a srcpkg from wizard to binary output, so that developer
31 could known the develop procedure by build-srcpkg."
33 : $(ui_PkgInitFrame_Desc)
35 # 1.4.weburl
36 SRCPKG_HOMEPAGE='https://repo.or.cz/demo'
37 SRCPKG_REPO_URL="https://repo.or.cz/demo.git"
38 SRCPKG_REPO_TYPE="git"
40 : $(ui_PkgInitFrame_WebUrl)
43 # 1.5.Toolchain & Language
45 SRCPKG_LANG=(
46 'C'
47 'C' 'C++' 'Objective-C' 'vala'
48 'SH'
49 'ASM'
51 SRCPKG_MAIN_SYSTEM_TYPE=(
52         'linux/freebsd/win/mac'
53         win linux mac 
54         freebsd openbsd netbsd 
55         solaris opensolaris AIX HP-UX
57 SRCPKG_TOOLCHAIN_TYPE=(
58         'gcc'
59         $(autogen_GetToolChainList)
62 : $(ui_PkgInitFrame_ToolchainNLang)
65 # 1.6.Dependences.
67 SRCPKG_RUN_DEPS='
68 libc6 2.23
70 SRCPKG_DEV_DEPS='
71 shell POSIX - -
73         xxx 0.00 xxx http://...
75 glibc 2.23 GPL-3.0 https://www.gnu.org/software/libc/libc.html
78 : $(ui_PkgInitFrame_Dep)
81 # 1.7.Copying Info.
83 SRCPKG_YEAR="$(date +%Y)"
84 SRCPKG_HOLDER="${SRCPKG_AUTHOR}(${SRCPKG_AUTHOR_EMAIL})"
85 SRCPKG_COUNTRY=zh_CN
86 SRCPKG_CITY=zh_CN
87 SRCPKG_LICENSE=(
88 'MIT'
89 'MIT' 'Apache-2.0' 'BSD-3-Clause'
90 'GPL-3.0' 'LGPL-3.0' 'MPL-2.0'
91 'GPL' 'GPL-2.0' 'ISC' 'PMIT'
93 SRCPKG_LICENSE_FILES=(
94 'COPYING'
95 'COPYING'
96 '${SRCPKG_LICENSE}.COPYING'
97 'LISENCE'
98 '${SRCPKG_LICENSE}.LISENCE'
101 : $(ui_PkgInitFrame_Copying)
105 # 2.build info
108 # 2.1.builder-type
109 SRCPKG_BUILDER_TYPE=(
110         "build-srcpkg"
112 # 2.2.srcpkg-type
113 SRCPKG_SRCPKG_TYPE=(
114         "exelibex"
115         full
116         intgr           #integrate
117         exelist
118         exelib
119         exelibex
120         lib
121         shlib
122         $(autogen_SrcPkgTypeList)
124 : $(ui_PkgInitFrame_Buildinfo)
126 # 2.2.1.doc-type
127 SRCPKG_DOCSRC_TYPE=(
128         "md"
129         md txt texi docbook
131 SRCPKG_DOC_TYPE=(
132         "man+txt+html+pdf"
133         man info dvi txt html pdf tex2all md2all
135 # 2.2.2.src-type
136 SRCPKG_SRC_TYPE=(
137         "exe+lib+example+shlib"
138         exe
139         lib
140         example
141         bin
142         shlib
143         $(autogen_SrcTypeList)
145 # 2.2.3.dest-list
146 SRCPKG_DEST_LIST=(
147         "demo exe
148         demo unitlibdll
149         example exelist"
150         exe dll drv lib libdll unitlib unitlibdll
151         bin hex 
152         hostutils exelist objlist 
153         la obj lo 
154         script shlib
156 # 2.2.4.test-type
157 SRCPKG_TEST_TYPE=(
158         "greatest+scripttest"
159         greatest # cunit cppunit check
160         scripttest # bats shunit2
162 # 2.2.5.
163 : $(ui_PkgInitFrame_DestList)
165 # 2.4.instpkg
166 SRCPKG_INSTPKG_TYPE='
167         demo
168         demo-doc
169         libdemo-dev
171 # or named as output/binary ?
172 SRCPKG_INST_FILE_LIST='
173         demo
174         demo-doc
175         libdemo-dev
177 SRCPKG_INST_FILE_TYPE='etz'
178 : $(ui_PkgInitFrame_Instpkg)
182 # 3.style
183 #   not all param should be defined, leave it blank for developer's style.
184 #   Style defined here means it will overwrite
186 #Style=(
187 #       "PB1.0"
188 #       $(autogen_StyleList)
190 #CodingStyle=(
191 #       "PB1.0"
192 #       $(autogen_CodingStyleList)
194 #NamingStyle=(
195 #       "PB1.0"
196 #       $(autogen_NamingStyleList)
198 ##TmplStyle=(
199 ##      "PB1.0"
200 ##      $(autogen_TmplStyleList)
202 CodingTmpl=(
203         "PB1.0"
204         $(autogen_CodingTmplList)
206 SrcpkgStyle=(
207         "PB1.0"
208         $(autogen_SrcpkgStyleList)
210 InstpkgStyle=(
211         "etz"
212         $(autogen_InstpkgStyleList)
215 : $(ui_PkgInitFrame_Style)
226 # system
227 # license type & file of srcpkg itself
228 # dependencies
229 # copyright/license in all file (include media(or non-text) file)
232  # My software runs primarily on a completely free OS   
234  # My license is compatible with GNU GPLv3 and later or GFDLv1.3 and later   (!MIT!)
236  # My dependencies are compatible with my package license   
238  # All my files include valid copyright notices   
240  # All my files include a license notice   
242  # Origin and license of media files is specified   
244  # My tar file includes a copy of the license   
246  # I read carefully and don't check this one   
248  # I agree with the hosting requirements