Skip to content

Commit

Permalink
Create new way of making deb file and add new version
Browse files Browse the repository at this point in the history
This uses dh-virtualenv which prevents conflicts with other packages
that use the same libraries.

Also, version number has been updated to 0.5.2
  • Loading branch information
rrooij committed Jul 10, 2017
1 parent f46fa20 commit eff4b7a
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 10 deletions.
11 changes: 2 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@ VERSION=0.5.1
PACKAGE_NAME=python3-sd3save-editor_$(VERSION)_all

.PHONY: package_deb

package_deb:
fpm -s python --no-python-dependencies -d python3-pyqt5 --python-bin=python3 --python-package-name-prefix python3 -t deb setup.py
mkdir tmp_extracted
dpkg-deb -R $(PACKAGE_NAME).deb tmp_extracted
mkdir -p tmp_extracted/usr/share/applications
cp -r sd3save_editor.desktop tmp_extracted/usr/share/applications/
cp -r venv/lib/python3.5/site-packages/construct tmp_extracted/usr/local/lib/python3.5/dist-packages/
cp -r venv/lib/python3.5/site-packages/scalpl* tmp_extracted/usr/local/lib/python3.5/dist-packages/
dpkg-deb -b tmp_extracted $(PACKAGE_NAME).deb
rm -rf tmp_extracted
dpkg-buildpackage -us -uc

7zip_windows: package_exe
7z a dist/windows_exe.7z dist/sd3save_editor
Expand Down
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python3-sd3save-editor (0.5.2) unstable; urgency=low

* Initial Debian package

-- Robin <rderooij685@gmail.com> Sun, 09 Jul 2017 21:25:57 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
20 changes: 20 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Source: python3-sd3save-editor
Section: python
Priority: extra
Maintainer: Robin <rderooij685@gmail.com>
Build-Depends: debhelper (>= 9), python3, dh-virtualenv (>= 0.8), python3-pyqt5
Standards-Version: 3.9.5

Package: python3-sd3save-editor
Version: 0.5.2
License: GPL-3.0
Vendor: none
Architecture: all
Maintainer: Robin <rderooij685@gmail.com>
Installed-Size: 107
Pre-Depends: dpkg (>= 1.16.1)
Depends: python3-pyqt5, python3
Section: python
Priority: extra
Homepage: https://github.com/rrooij/sd3save_editor
Description: Seiken Densetsu 3 Save Editor
2 changes: 2 additions & 0 deletions debian/files
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python3-sd3save-editor_0.5.2_all.deb python extra
python3-sd3save-editor_0.5.2_amd64.buildinfo python extra
1 change: 1 addition & 0 deletions debian/install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
debian/sd3save_editor.desktop usr/share/applications/
4 changes: 4 additions & 0 deletions debian/python3-sd3save-editor.triggers
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
interest-noawait /usr/bin/python3.5

# Also provide a symbolic trigger for all dh-virtualenv packages
interest dh-virtualenv-interpreter-update
8 changes: 8 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/make -f
export DH_VIRTUALENV_ARGUMENTS=-p /usr/bin/python3.5 --system-site-packages
export DH_VIRTUALENV_INSTALL_ROOT=/opt/venvs/
%:
dh $@ --buildsystem=dh_virtualenv

override_dh_auto_test:

7 changes: 7 additions & 0 deletions debian/sd3save_editor.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=SD3 Save Editor
Categories=Game
Comment=A Seiken Densetsu 3 save editor
Exec=/opt/venvs/python3-sd3save-editor/bin/sd3save_editor_gui
Terminal=false
3 changes: 3 additions & 0 deletions debian/sd3save_editor_gui
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

/opt/venvs/python3-sd3save-editor/bin/sd3save_editor_gui
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
author='rrooij',
author_email='rderooij685@gmail.com',
url='https://github.com/rrooij/sd3save_editor',
version='0.5.1',
version='0.5.2',
license="GPL-3.0",
description='Seiken Densetsu 3 Save Editor',
packages=find_packages(),
Expand Down

0 comments on commit eff4b7a

Please sign in to comment.