17 |
SRCFILE="v${PVER}.tar.gz" |
SRCFILE="v${PVER}.tar.gz" |
18 |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 |
|
|
|
sminclude python |
|
|
|
|
20 |
SRC_URI=( |
SRC_URI=( |
21 |
https://github.com/ninja-build/${PNAME}/archive/${SRCFILE} |
https://github.com/ninja-build/${PNAME}/archive/${SRCFILE} |
22 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
23 |
) |
) |
24 |
|
|
25 |
|
sminclude mtools |
26 |
|
|
27 |
UP2SEPERATOR="v" |
UP2SEPERATOR="v" |
28 |
UP2DATE="updatecmd https://github.com/ninja-build/${PNAME}/releases | highesttarball gz" |
UP2DATE="updatecmd https://github.com/ninja-build/${PNAME}/releases | highesttarball gz" |
29 |
|
|
30 |
|
src_prepare() |
31 |
|
{ |
32 |
|
munpack ${SRCFILE} || die |
33 |
|
} |
34 |
|
|
35 |
|
src_compile() |
36 |
|
{ |
37 |
|
cd ${SRCDIR} |
38 |
|
python ./configure.py --bootstrap || die |
39 |
|
} |
40 |
|
|
41 |
|
src_install() |
42 |
|
{ |
43 |
|
cd ${SRCDIR} |
44 |
|
|
45 |
|
minstallexec ninja || die |
46 |
|
minstalldir /usr/share/vim/vimfiles/syntax || die |
47 |
|
minstallfile misc/ninja.vim /usr/share/vim/vimfiles/syntax/ || die |
48 |
|
minstalldocs doc/manual.asciidoc || die |
49 |
|
} |