Skip to content

Commit

Permalink
Added debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
rilian-la-te committed Apr 25, 2015
1 parent 3b8c535 commit 89ea722
Show file tree
Hide file tree
Showing 17 changed files with 459 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vala-panel-extras (0.1.2-1) unstable; urgency=low

* Initial release

-- Konstantin <[email protected]> Sat, 25 Apr 2015 00:57:09 +0600
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
94 changes: 94 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
Source: vala-panel-extras
Section: x11
Priority: optional
Maintainer: Konstantin P. <[email protected]>
Build-Depends: debhelper (>= 9), cmake (>= 2.8.0), libgtk-3-dev (>= 3.12.0), libasound2-dev, libgtop2-dev, libxkbcommon-x11-dev, libx11-xcb-dev, libxcb-xkb-dev, libgweather-3-dev
Standards-Version: 3.9.5
Homepage: https://github.com/rilian-la-te/vala-panel-extras
#Vcs-Git: https://github.com/rilian-la-te/vala-panel-extras.git
#Vcs-Browser: https://github.com/rilian-la-te/vala-panel-extras

Package: vala-panel-extras-common
Architecture: all
Depends: ${misc:Depends}
Description: Vala Panel Extras is StatusNotifierItems (AppIndicators). This is common files.
Vala Panel Extras is small programs, that can be used with any StatusNotifierWatcher. It may not be useful in Ubuntu,
but very good in other environments

Package: vala-panel-extras-volume
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, vala-panel-extras-common
Description: Vala Panel Extras is StatusNotifierItems (AppIndicators). This is volume applet
Vala Panel Extras is small programs, that can be used with any StatusNotifierWatcher. It may not be useful in Ubuntu,
but very good in other environments

Package: vala-panel-extras-volume-dbg
Architecture: any
Depends: ${misc:Depends}, vala-panel-extras-volume (= ${binary:Version})
Description: This is debug information for Vala Panel Extras (volume applet)
Vala Panel Extras is small programs, that can be used with any StatusNotifierWatcher. It may not be useful in Ubuntu,
but very good in other environments

Package: vala-panel-extras-xkb
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, vala-panel-extras-common
Recommends: vala-panel-extras-xkb-flags
Description: Vala Panel Extras is StatusNotifierItems (AppIndicators). This is keyboard layout applet
Vala Panel Extras is small programs, that can be used with any StatusNotifierWatcher. It may not be useful in Ubuntu,
but very good in other environments

Package: vala-panel-extras-xkb-flags
Architecture: all
Depends: ${misc:Depends}, vala-panel-extras-xkb
Description: Vala Panel Extras is StatusNotifierItems (AppIndicators). This is keyboard layout applet flags
Vala Panel Extras is small programs, that can be used with any StatusNotifierWatcher. It may not be useful in Ubuntu,
but very good in other environments

Package: vala-panel-extras-xkb-dbg
Architecture: any
Depends: ${misc:Depends}, vala-panel-extras-xkb (= ${binary:Version})
Description: This is debug information for Vala Panel Extras (keyboard layout applet)
Vala Panel Extras is small programs, that can be used with any StatusNotifierWatcher. It may not be useful in Ubuntu,
but very good in other environments

Package: vala-panel-extras-gtop
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, vala-panel-extras-common
Description: Vala Panel Extras is StatusNotifierItems (AppIndicators). This is netspeed applet
Vala Panel Extras is small programs, that can be used with any StatusNotifierWatcher. It may not be useful in Ubuntu,
but very good in other environments

Package: vala-panel-extras-gtop-dbg
Architecture: any
Depends: ${misc:Depends}, vala-panel-extras-gtop (= ${binary:Version})
Description: This is debug information for Vala Panel Extras (netspeed applet)
Vala Panel Extras is small programs, that can be used with any StatusNotifierWatcher. It may not be useful in Ubuntu,
but very good in other environments

Package: vala-panel-extras-weather
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, vala-panel-extras-common
Description: Vala Panel Extras is StatusNotifierItems (AppIndicators). This is weather applet
Vala Panel Extras is small programs, that can be used with any StatusNotifierWatcher. It may not be useful in Ubuntu,
but very good in other environments

Package: vala-panel-extras-weather-dbg
Architecture: any
Depends: ${misc:Depends}, vala-panel-extras-weather (= ${binary:Version})
Description: This is debug information for Vala Panel Extras (volume applet)
Vala Panel Extras is small programs, that can be used with any StatusNotifierWatcher. It may not be useful in Ubuntu,
but very good in other environments

Package: vala-panel-extras-battery
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, vala-panel-extras-common, upower
Description: Vala Panel Extras is StatusNotifierItems (AppIndicators). This is battery applet
Vala Panel Extras is small programs, that can be used with any StatusNotifierWatcher. It may not be useful in Ubuntu,
but very good in other environments

Package: vala-panel-extras-battery-dbg
Architecture: any
Depends: ${misc:Depends}, vala-panel-extras-battery (= ${binary:Version})
Description: This is debug information for Vala Panel Extras (volume applet)
Vala Panel Extras is small programs, that can be used with any StatusNotifierWatcher. It may not be useful in Ubuntu,
but very good in other environments
34 changes: 34 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: vala-panel
Source: <https://github.com/rilian-la-te/vala-panel>

Files: *
Copyright: <2014-2015> <Konstantin P. <[email protected]> >
<2006-2014> <LXDE Developers>
License: LGPL-3.0+

Files: debian/*
Copyright: 2015 user <user@unknown>
License: LGPL-3.0+

License: LGPL-3.0+
This package is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser 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
Lesser 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 <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU Lesser General
Public License can be found in "/usr/share/common-licenses/LGPL-3".

# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid to pick license terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
1 change: 1 addition & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
211 changes: 211 additions & 0 deletions debian/manpage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [

<!--

`xsltproc -''-nonet \
-''-param man.charmap.use.subset "0" \
-''-param make.year.ranges "1" \
-''-param make.single.year.ranges "1" \
/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \
manpage.xml'

A manual page <package>.<section> will be generated. You may view the
manual page with: nroff -man <package>.<section> | less'. A typical entry
in a Makefile or Makefile.am is:

DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl
XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0"

manpage.1: manpage.xml
$(XP) $(DB2MAN) $<

The xsltproc binary is found in the xsltproc package. The XSL files are in
docbook-xsl. A description of the parameters you can use can be found in the
docbook-xsl-doc-* packages. Please remember that if you create the nroff
version in one of the debian/rules file targets (such as build), you will need
to include xsltproc and docbook-xsl in your Build-Depends control field.
Alternatively use the xmlto command/package. That will also automatically
pull in xsltproc and docbook-xsl.

Notes for using docbook2x: docbook2x-man does not automatically create the
AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
<refsect1> ... </refsect1>.

To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
found in the docbook-xsl-doc-html package.

Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`

General documentation about man-pages and man-page-formatting:
man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/

-->

<!-- Fill in your name for FIRSTNAME and SURNAME. -->
<!ENTITY dhfirstname "Konstantin">
<!ENTITY dhsurname "P.">
<!-- dhusername could also be set to "&dhfirstname; &dhsurname;". -->
<!ENTITY dhusername "athor">
<!ENTITY dhemail "[email protected]">
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
allowed: see man(7), man(1) and
http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
<!ENTITY dhsection "1">
<!-- TITLE should be something like "User commands" or similar (see
http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
<!ENTITY dhtitle "Vala Panel User Manual">
<!ENTITY dhucpackage "Vala Panel">
<!ENTITY dhpackage "vala-panel">
]>

<refentry>
<refentryinfo>
<title>&dhtitle;</title>
<productname>&dhpackage;</productname>
<authorgroup>
<author>
<firstname>&dhfirstname;</firstname>
<surname>&dhsurname;</surname>
<contrib>Wrote this manpage for the Debian system.</contrib>
<address>
<email>&dhemail;</email>
</address>
</author>
</authorgroup>
<copyright>
<year>2015</year>
<holder>&dhusername;</holder>
</copyright>
<legalnotice>
<para>This manual page was written for the Debian system
(and may be used by others).</para>
<para>Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU General Public License,
Version 3 or (at your option) any later version published by
the Free Software Foundation.</para>
<para>On Debian systems, the complete text of the GNU General Public
License can be found in
<filename>/usr/share/common-licenses/GPL</filename>.</para>
</legalnotice>
</refentryinfo>
<refmeta>
<refentrytitle>&dhucpackage;</refentrytitle>
<manvolnum>&dhsection;</manvolnum>
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose> Vala Panel is GTK+ 3 desktop panel. It is based on Vala and some LXPanel ideas.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dhpackage;</command>
<!-- These are several examples, how syntaxes could look -->
<arg choice="opt">
<group choice="req">
<arg choice="plain"><option>-c</option></arg>
<arg choice="plain"><option>--command</option></arg>
</group>
<replaceable class="option">command name</replaceable>
</arg>
<arg choice="opt">
<group choice="req">
<arg choice="plain"><option>-p</option></arg>
<arg choice="plain"><option>--profile</option></arg>
</group>
<replaceable class="option">profile name</replaceable>
</arg>
</cmdsynopsis>
<cmdsynopsis>
<command>&dhpackage;</command>
<!-- Normally the help and version options make the programs stop
right after outputting the requested information. -->
<group choice="opt">
<arg choice="plain">
<group choice="req">
<arg choice="plain"><option>-h</option></arg>
<arg choice="plain"><option>--help</option></arg>
</group>
</arg>
<arg choice="plain">
<group choice="req">
<arg choice="plain"><option>-v</option></arg>
<arg choice="plain"><option>--version</option></arg>
</group>
</arg>
</group>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 id="description">
<title>DESCRIPTION</title>
<para>This manual page documents briefly the
<command>&dhpackage;</command> command.</para>
<para>This manual page was written for the Debian distribution
because the original program does not have a manual page.</para>
<para><command>&dhpackage;</command> is a program that runs a panel</para>
</refsect1>
<refsect1 id="options">
<title>OPTIONS</title>
<para>The program follows the usual GNU command line syntax,
with long options starting with two dashes (`-'). A summary of
options is included below. For a complete description, see the
<citerefentry>
<refentrytitle>info</refentrytitle>
<manvolnum>1</manvolnum>
</citerefentry> files.</para>
<variablelist>
<!-- Use the variablelist.term.separator and the
variablelist.term.break.after parameters to
control the term elements. -->
<varlistentry>
<term><option>-c <replaceable>command</replaceable></option></term>
<term><option>--command=<replaceable>command name</replaceable></option></term>
<listitem>
<para>Runs specific command on already opened panel.
Valid commands without arguments are: menu, preferences, run, about, logout, shutdown and quit.
Valid commands with one string argument are launch-id, launch-uri, launch-command and panel-preferences.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-p <replaceable>profile</replaceable></option></term>
<term><option>--profile=<replaceable>profile name</replaceable></option></term>
<listitem>
<para>Runs panel with specified profile. This option will have an effect only if panel is not runs now.
There are three preinstalled profiles: default, two_panels and appmenu.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-h</option></term>
<term><option>--help</option></term>
<listitem>
<para>Show summary of options.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-v</option></term>
<term><option>--version</option></term>
<listitem>
<para>Show version of program.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 id="files">
<title>FILES</title>
<variablelist>
<varlistentry>
<term><filename>${$XDG_CONFIG_HOME}/vala-panel/</filename></term>
<listitem>
<para>The per-user configuration folder to control the
behaviour of <application>&dhpackage;</application>.
It contains subfolders only, and it must contain at least one subfolder after a first run of <application>&dhpackage;</application>.
Each subfolder is a profile for panel, and its name used as profile name with profile options.
See default profiles for futher reference.
</listitem>
</varlistentry>
</variablelist>
</refsect1>
</refentry>

26 changes: 26 additions & 0 deletions debian/patches/install-all-schemas-at-once.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/data/gschemas/CMakeLists.txt b/data/gschemas/CMakeLists.txt
index 185562c..1c15898 100644
--- a/data/gschemas/CMakeLists.txt
+++ b/data/gschemas/CMakeLists.txt
@@ -1,16 +1,6 @@
include(GSettings)
-if (ENABLE_ALSA)
- add_schema("org.valapanel.volume.gschema.xml")
-endif()
-if (ENABLE_WEATHER)
- add_schema("org.valapanel.weather.gschema.xml")
-endif()
-if (ENABLE_XKB)
- add_schema("org.valapanel.xkb.gschema.xml")
-endif()
-if (ENABLE_BATTERY)
- add_schema("org.valapanel.battery.gschema.xml")
-endif()
-if (ENABLE_LIBGTOP)
- add_schema("org.valapanel.gtop.gschema.xml")
-endif()
+add_schema("org.valapanel.volume.gschema.xml")
+add_schema("org.valapanel.weather.gschema.xml")
+add_schema("org.valapanel.xkb.gschema.xml")
+add_schema("org.valapanel.battery.gschema.xml")
+add_schema("org.valapanel.gtop.gschema.xml")
Loading

0 comments on commit 89ea722

Please sign in to comment.