From 5692a2b0e32a2358590faf7d99bfe44559b11c8d Mon Sep 17 00:00:00 2001 From: dismine Date: Tue, 26 Nov 2013 18:44:44 +0200 Subject: [PATCH] debian folder. --HG-- branch : develop --- dist/debian/changelog | 5 +++ dist/debian/control | 14 +++++++++ dist/debian/copyright | 28 +++++++++++++++++ dist/debian/docs | 2 ++ dist/debian/menu | 2 ++ dist/debian/postinst | 43 +++++++++++++++++++++++++ dist/debian/rules | 49 +++++++++++++++++++++++++++++ dist/debian/source/format | 1 + dist/debian/source/include-binaries | 4 +++ dist/debian/valentina.1 | 13 ++++++++ dist/debian/valentina.manpages | 1 + 11 files changed, 162 insertions(+) create mode 100644 dist/debian/changelog create mode 100644 dist/debian/control create mode 100644 dist/debian/copyright create mode 100644 dist/debian/docs create mode 100644 dist/debian/menu create mode 100644 dist/debian/postinst create mode 100755 dist/debian/rules create mode 100644 dist/debian/source/format create mode 100644 dist/debian/source/include-binaries create mode 100644 dist/debian/valentina.1 create mode 100644 dist/debian/valentina.manpages diff --git a/dist/debian/changelog b/dist/debian/changelog new file mode 100644 index 000000000..761e49c2d --- /dev/null +++ b/dist/debian/changelog @@ -0,0 +1,5 @@ +valentina (0.2+1hg20131125-ppa1-1) unstable; urgency=low + + * First test package + + -- Roman Telezhinsky Mon, 25 Nov 2013 13:05:58 +0200 diff --git a/dist/debian/control b/dist/debian/control new file mode 100644 index 000000000..f0b1ebfdc --- /dev/null +++ b/dist/debian/control @@ -0,0 +1,14 @@ +Source: valentina +Section: Universe +Priority: optional +Maintainer: Roman Telezhinsky +Build-Depends: debhelper (>= 8.0.0), qtbase5-dev (>= 5.0.0), libqt5svg5-dev (>= 5.0.0), ccache (>= 3.1.9), g++ (>= 4.6.0) +Standards-Version: 3.9.4 +Homepage: https://bitbucket.org/dismine/valentina + +Package: valentina +Architecture: i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Pattern making program. + Open source project of creating a pattern making program, whose allow + create and modeling patterns of clothing. diff --git a/dist/debian/copyright b/dist/debian/copyright new file mode 100644 index 000000000..3a6e44e72 --- /dev/null +++ b/dist/debian/copyright @@ -0,0 +1,28 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: valentina +Source: https://bitbucket.org/dismine/valentina + +Files: * +Copyright: 2013 Roman Telezhinsky +License: GPL-3.0+ + +Files: debian/* +Copyright: 2013 Roman Telezhinsky +License: GPL-3.0+ + +License: GPL-3.0+ + This program 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, either version 3 of the License, or + (at your option) any later version. + . + This package 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 this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/dist/debian/docs b/dist/debian/docs new file mode 100644 index 000000000..724e08449 --- /dev/null +++ b/dist/debian/docs @@ -0,0 +1,2 @@ +README +TODO diff --git a/dist/debian/menu b/dist/debian/menu new file mode 100644 index 000000000..b532336ea --- /dev/null +++ b/dist/debian/menu @@ -0,0 +1,2 @@ +?package(valentina):needs="X11|text|vc|wm" section="Applications/Graphics"\ + title="valentina" command="/usr/bin/valentina" diff --git a/dist/debian/postinst b/dist/debian/postinst new file mode 100644 index 000000000..a3d3eb81d --- /dev/null +++ b/dist/debian/postinst @@ -0,0 +1,43 @@ +#!/bin/sh +# postinst script for valentina +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + + if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ] ; then + update-menus + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/dist/debian/rules b/dist/debian/rules new file mode 100755 index 000000000..9ac5a2f02 --- /dev/null +++ b/dist/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + APPNAME := valentina + builddir: + mkdir -p builddir + + builddir/Makefile: builddir + lrelease src/src.pro + cd builddir && qmake PREFIX=/usr ../$(APPNAME).pro -r + build: build-stamp + build-stamp: builddir/Makefile + dh_testdir + # Add here commands to compile the package. + cd builddir && $(MAKE) + touch $@ + clean: + dh_testdir + dh_testroot + rm -f build-stamp + # Add here commands to clean up after the build process. + rm -rf builddir + dh_clean + install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + # Add here commands to install the package into debian/your_appname + cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/tmp install + # Build architecture-independent files here. + binary-indep: build install + # We have nothing to do by default. + # Build architecture-dependent files here. + binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installman + dh_installmenu + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + binary: binary-indep binary-arch + .PHONY: build clean binary-indep binary-arch binary install configure diff --git a/dist/debian/source/format b/dist/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/dist/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/dist/debian/source/include-binaries b/dist/debian/source/include-binaries new file mode 100644 index 000000000..bb85f001a --- /dev/null +++ b/dist/debian/source/include-binaries @@ -0,0 +1,4 @@ +debian/usr/share/pixmaps/valentina.png +debian/valentina/usr/bin/valentina +debian/valentina/usr/share/valentina/translations/valentina_ru.qm +debian/valentina/usr/share/valentina/translations/valentina_uk.qm diff --git a/dist/debian/valentina.1 b/dist/debian/valentina.1 new file mode 100644 index 000000000..488473b7f --- /dev/null +++ b/dist/debian/valentina.1 @@ -0,0 +1,13 @@ +.\" Manpage for valentina. +.\" Contact dismine@gmail.com.in to correct errors. +.TH man 1 "25 Nov 2013" "1.0" "valentina man page" +.SH NAME +valentina \- Pattern making program. +.SH SYNOPSIS +valentina +.SH DESCRIPTION +Open source project of creating a pattern making program, whose allow create and modeling patterns of clothing. +.SH OPTIONS +The valentina does not take any options. +.SH AUTHOR +Roman Telezhinsky (dismine@gmail.com) \ No newline at end of file diff --git a/dist/debian/valentina.manpages b/dist/debian/valentina.manpages new file mode 100644 index 000000000..c8bb0f8e5 --- /dev/null +++ b/dist/debian/valentina.manpages @@ -0,0 +1 @@ +debian/valentina.1