From 5a0226c8624143f574f16d58bf15af4c6169a3cd Mon Sep 17 00:00:00 2001 From: tudo75 Date: Tue, 16 Aug 2022 00:26:02 +0200 Subject: [PATCH] added bedian package support --- .gitignore | 8 ++++++++ create-deb.sh | 7 +++++++ data/sessionsaver-plugin.desktop.in | 2 +- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 21 +++++++++++++++++++++ debian/copyright | 18 ++++++++++++++++++ debian/rules | 25 +++++++++++++++++++++++++ debian/source/format | 1 + debian/xed-sessionsaver-plugin.install | 1 + meson.build | 2 +- 11 files changed, 89 insertions(+), 2 deletions(-) create mode 100755 create-deb.sh create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/xed-sessionsaver-plugin.install diff --git a/.gitignore b/.gitignore index 3524620..da3813b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ tests *.pot *.mo *.deb +*.ddeb build config.* @@ -19,6 +20,13 @@ stamp-h1 *.pc .tarball-version .version +debian/build +debian/tmp +debian/xed-sessionsaver-plugin +debian/.debhelper +debian/xed-sessionsaver-plugin.substvars +debian/xed-sessionsaver-plugin.debhelper.log +debian/files *.gcda *.gcno diff --git a/create-deb.sh b/create-deb.sh new file mode 100755 index 0000000..9bc007e --- /dev/null +++ b/create-deb.sh @@ -0,0 +1,7 @@ +#/bin/bash +sudo dh clean +sudo dh binary + +# when run in the docker container +# fakeroot dh clean +# fakeroot dh binary diff --git a/data/sessionsaver-plugin.desktop.in b/data/sessionsaver-plugin.desktop.in index 3fe5317..844fc5d 100644 --- a/data/sessionsaver-plugin.desktop.in +++ b/data/sessionsaver-plugin.desktop.in @@ -2,7 +2,7 @@ Module=sessionsaver IAge=2 Name=SessionSaver -Version=v0.0.3 +Version=v0.1.0 Description=Xed porting of the Gedit sessionsaver plugin Comment=Xed porting of the Gedit sessionsaver plugin Icon=system-software-install diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9fd4335 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +xed-sessionsaver-plugin (0.1.0) una; urgency=medium + + * Initial release. + + -- tudo75 Tue, 16 Aug 2022 00:20:41 +0000 \ No newline at end of file diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..fc54649 --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: xed-sessionsaver-plugin +Section: x11 +Priority: optional +Maintainer: Nicola tudo75 Tudino +Build-Depends: debhelper (>= 9), + meson, + dh-python, + gnome-common, + gnome-pkg-tools, + gobject-introspection (>= 0.9.12-4~), + intltool (>= 0.40.0), + libgirepository1.0-dev (>= 0.10.7-1~), + libglib2.0-dev (>= 2.30.0) +Standards-Version: 3.9.5 +X-Python3-Version: >= 3.1 + +Package: xed-sessionsaver-plugin +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: SessionSaver Plugin for Xed written in Vala. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..1a7ac1a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,18 @@ +Files: * +Copyright 2022 Nicola Tudino + +This file is part of xed-sessionsaver-plugin. + +xed-sessionsaver-plugin is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +xed-sessionsaver-plugin is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with xed-sessionsaver-plugin. If not, see . + +SPDX-License-Identifier: GPL-3.0-only diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..625d147 --- /dev/null +++ b/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f + +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +%: + dh $@ --parallel + +override_dh_missing: + dh_missing --list-missing + dh_missing --fail-missing + +override_dh_auto_configure: + meson debian/build \ + --prefix=/usr \ + --buildtype=plain + +override_dh_auto_clean: + -dh_auto_clean + +override_dh_auto_install: + DESTDIR=${CURDIR}/debian/tmp \ + ninja -v -C debian/build install + +override_dh_auto_build: + ninja -v -C debian/build diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/xed-sessionsaver-plugin.install b/debian/xed-sessionsaver-plugin.install new file mode 100644 index 0000000..1b91047 --- /dev/null +++ b/debian/xed-sessionsaver-plugin.install @@ -0,0 +1 @@ +usr/ diff --git a/meson.build b/meson.build index 2ab645c..8b03c42 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ # project name and programming language -project('com.github.tudo75.xed-sessionsaver-plugin', ['vala', 'c'], version: '0.0.3') +project('com.github.tudo75.xed-sessionsaver-plugin', ['vala', 'c'], version: '0.1.0') assert('com.github.tudo75.xed-sessionsaver-plugin.gschema.xml'==meson.project_name() + '.gschema.xml', 'proj name and gschema file not the same')