2019-06-23 19:53:10 +00:00
|
|
|
#!/bin/sh
|
|
|
|
[% c("var/set_default_env") -%]
|
2019-09-15 23:41:21 +00:00
|
|
|
[% 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') %]
|
2019-06-23 19:53:10 +00:00
|
|
|
|
|
|
|
[% c('tar', {
|
2019-09-15 23:41:21 +00:00
|
|
|
tar_src => '.',
|
2019-06-23 19:53:10 +00:00
|
|
|
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
|
|
|
|
}) %]
|