Profil pour contruire un paquet deb à partir d’une source obtenue sur pypi
This commit is contained in:
15
hooks/build/stdeb/build
Executable file
15
hooks/build/stdeb/build
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd src
|
||||
for archive in *.tar.gz
|
||||
do
|
||||
py2dsc $archive
|
||||
folder="$(find deb_dist/* -maxdepth 0 -type d)"
|
||||
pushd $folder
|
||||
dpkg-buildpackage -b -a"${TAMARIN_TARGET_ARCH}"
|
||||
find ../ -maxdepth 1 -name "*.deb" -type f -print0 | xargs -0r mv -t /dist/
|
||||
popd
|
||||
rm -rf $folder
|
||||
done
|
||||
|
||||
exit 0
|
9
hooks/containerbuild/ubuntu/install-stdeb
Executable file
9
hooks/containerbuild/ubuntu/install-stdeb
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile
|
||||
echo 'RUN apt-get update && apt-get install --yes --no-install-recommends python3-all dh-python python3-pip' >> Dockerfile
|
||||
echo 'RUN pip3 install stdeb' >> Dockerfile
|
||||
echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile
|
||||
|
Reference in New Issue
Block a user