mirror of
https://github.com/namecoin/ncdns-repro
synced 2024-11-16 12:12:44 +00:00
43 lines
1.4 KiB
Bash
43 lines
1.4 KiB
Bash
#!/bin/sh
|
|
[% c("var/set_default_env") -%]
|
|
[% pc('python', 'var/setup', { python_tarfile => c('input_files_by_name/python') }) %]
|
|
distdir=/var/tmp/build/[% project %]
|
|
mkdir -p /var/tmp/build/[% project %]
|
|
tar -C /var/tmp/build/[% project %] -xf [% project %]-[% c("version") %].tar.gz
|
|
|
|
cd /var/tmp/build/[% project %]/[% project %]-*
|
|
|
|
mkdir packages
|
|
cd packages
|
|
|
|
[% FOREACH dep = ['aiohttp', 'aiohttp_socks', 'aiorpcx', 'async_timeout', 'attr', 'certifi', 'chardet', 'colorama', 'dns', 'ecdsa', 'idna', 'idna_ssl', 'jsonrpclib', 'multidict', 'pyaes', 'qdarkstyle', 'qrcode', 'six', 'typing_extensions', 'yarl'] -%]
|
|
tar -C . -xf $rootdir/[% c('input_files_by_name/' _ dep) %]
|
|
[% END -%]
|
|
|
|
tar -C . -xf $rootdir/[% c('input_files_by_name/protobuf') %]/python-protobuf.tar.gz
|
|
|
|
cd ../
|
|
python3 setup.py sdist --format=gztar
|
|
|
|
mkdir -p /var/tmp/build/sdist/[% project %]
|
|
tar -C /var/tmp/build/sdist/[% project %] -xvf dist/Electrum-NMC-[% c('version') %].tar.gz
|
|
|
|
mkdir -p /var/tmp/dist/[% project %]
|
|
cd /var/tmp/dist/[% project %]
|
|
|
|
cp -a /var/tmp/build/sdist/[% project %]/Electrum-NMC* ./Electrum-NMC-[% c('version') %]
|
|
|
|
cd ./Electrum-NMC-[% c('version') %]
|
|
[% IF ! c("var/enable_qt") %]
|
|
rm -r electrum_nmc/electrum/gui/qt/
|
|
[% END %]
|
|
[% IF ! c("var/enable_kivy") %]
|
|
rm -r electrum_nmc/electrum/gui/kivy/
|
|
[% END %]
|
|
cd ../
|
|
|
|
[% c('tar', {
|
|
tar_src => '.',
|
|
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
|
|
}) %]
|