A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/themix-project/themix-gui/commit/3ef65b4d9268d39459d5abbfad10edecc55d2fee below:

Enhance ubuntu packaging with fakeroot usage and __pycache__ cleanup · themix-project/themix-gui@3ef65b4 · GitHub

File tree Expand file treeCollapse file tree 4 files changed

+15

-3

lines changed

Filter options

Expand file treeCollapse file tree 4 files changed

+15

-3

lines changed Original file line number Diff line number Diff line change

@@ -1,5 +1,5 @@

1 1

FROM ubuntu:cosmic

2 2

WORKDIR /opt/oomox

3 3

CMD ["/bin/bash", "./packaging/ubuntu/create_ubuntu_package.sh", "control_1810", "--install"]

4 -

RUN apt update --allow-unauthenticated && apt install -y make gettext

4 +

RUN apt update --allow-unauthenticated && apt install -y make gettext fakeroot

5 5

COPY . /opt/oomox/

Original file line number Diff line number Diff line change

@@ -3,5 +3,5 @@ WORKDIR /opt/oomox

3 3

CMD ["/bin/bash", "./packaging/ubuntu/create_ubuntu_package.sh", "control", "--install"]

4 4

RUN sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list && \

5 5

apt-get update && \

6 -

apt-get install -y make gettext

6 +

apt-get install -y make gettext fakeroot

7 7

COPY . /opt/oomox/

Original file line number Diff line number Diff line change

@@ -14,13 +14,14 @@ pkgdir=$(readlink -e ./${_pkgdirname})

14 14 15 15

mkdir "${pkgdir}"/DEBIAN

16 16

cp "${srcdir}"/packaging/ubuntu/postinst "${pkgdir}"/DEBIAN

17 +

cp "${srcdir}"/packaging/ubuntu/prerm "${pkgdir}"/DEBIAN

17 18

cp "${srcdir}"/packaging/ubuntu/"${control_file}" "${pkgdir}"/DEBIAN/control

18 19 19 20

cd "${srcdir}"

20 21

make DESTDIR="${pkgdir}" install

21 22 22 23

cd "${pkgdir}"

23 -

dpkg-deb --build . oomox.deb

24 +

fakeroot dpkg-deb --build . oomox.deb

24 25

if [[ "${2:-}" = "--install" ]] ; then

25 26

apt install -y --no-install-recommends ./oomox.deb

26 27

fi

Original file line number Diff line number Diff line change

@@ -0,0 +1,11 @@

1 +

#!/bin/sh

2 +

set -e

3 + 4 +

# Shamelessly modified from dh_python3:

5 +

if which py3clean >/dev/null 2>&1; then

6 +

py3clean /opt/oomox/oomox_gui

7 +

else

8 +

rm -rf /opt/oomox/oomox_gui/__pycache__

9 +

fi

10 + 11 +

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4