Skip to content

Commit

Permalink
Merge pull request #33 from apandada1/debpackage
Browse files Browse the repository at this point in the history
Debian package and updated README
  • Loading branch information
rafaelmardojai authored Sep 9, 2020
2 parents 10597f3 + daef00e commit d26b523
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 15 deletions.
36 changes: 21 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,33 @@
Improve focus and increase your productivity by listening to different sounds. Or allows you to fall asleep in a noisy environment.

## Other Methods of Installation
> We are looking for volunteers to help us make native packages of Blanket for Debian, Fedora, and other major distributions. It would be great if you could help.
> We are looking for volunteers to help us make native packages of Blanket for Fedora, Solus and other major distributions. It would be great if you could help either by packaging, or by getting the following into the official repositories.
### AUR
For Arch Linux and its derivatives you can install the [`blanket`](https://aur.archlinux.org/packages/blanket) package from AUR.
| Distribution | Package Name | Maintainer |
|:-:|:-:|:-:|
| Arch Linux (AUR) | [`blanket`](https://aur.archlinux.org/packages/blanket) | [Mark Wagie](https://github.com/yochananmarqos) |
| Ubuntu (PPA) | [`blanket`](https://launchpad.net/~apandada1/+archive/ubuntu/blanket) | [Archisman Panigrahi](https://github.com/apandada1) |

## Build from source

Clone and run from GNOME Builder.
- You can clone and run from GNOME Builder.

### Requirements

- Python 3 `python`
- PyGObject `python-gobject`
- `appstream-glib`
- GTK3 `gtk3`
- Handy `libhandy >= 0.90.0`
- GStreamer `gstreamer`
- `python-gst`
- Meson `meson`
- Ninja `ninja`

### Meson
| Dependency | RPM Package | Debian Package |
|:-:|:-:|:-:|
| meson (>= 0.50) | `meson` | `meson` |
| ninja | `ninja` | `ninja-build` |
| appstream and glib | `appstream-glib` | `libglib2.0-dev`,`appstream` |
| Python 3 | `python` | `python3` |
| libhandy (>= 0.90.0) | `libhandy` | `libhandy-1-dev` |
| gstreamer | `python-gst` | `gir1.2-gst-plugins-bad-1.0` |
| GTK3 | `gtk3` | `gir1.2-gtk-3.0` |
| PyGObject | `python3-gobject` | |
| Build dependencies <br>for packaging | | `gettext`, `pkg-config` |


- Alternatively, use the following commands to build it with meson.
```bash
meson builddir --prefix=/usr/local
sudo ninja -C builddir install
Expand All @@ -53,3 +58,4 @@ Developed by **[Rafael Mardojai CM](https://github.com/rafaelmardojai)** and [co

## Donate
If you want to support development, consider donating via [PayPal](https://paypal.me/RafaelMardojaiCM).

5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blanket (0.2.0-1) focal; urgency=medium

* PPA package

-- Archisman Panigrahi <[email protected]> Sun, 06 Sep 2020 11:48:01 +0530
27 changes: 27 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Source: blanket
Section: gnome
Priority: optional
Maintainer: Rafael Mardojai CM <[email protected]>
Build-Depends: debhelper-compat(=10),
desktop-file-utils,
gettext,
meson (>= 0.50),
pkg-config,
libglib2.0-dev,
appstream
Standards-Version: 4.5.0
Rules-Requires-Root: no
Homepage: https://github.com/rafaelmardojai/blanket
Vcs-Browser: https://github.com/rafaelmardojai/blanket
Vcs-Git: https://github.com/rafaelmardojai/blanket.git

Package: blanket
Architecture: all
Depends: ${misc:Depends},
libhandy-1-dev,
gir1.2-gst-plugins-bad-1.0,
gir1.2-gtk-3.0,
python3
Description: Listen to different sounds
Improve focus and increase your productivity by listening to different sounds.
Or allows you to fall asleep in a noisy environment.
23 changes: 23 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: blanket
Upstream-Contact: Rafael Mardojai CM <[email protected]>
Source: https://github.com/rafaelmardojai/blanket

Files: *
Copyright: 2020 Rafael Mardojai CM <[email protected]>
License: GPL-3+
This package 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 <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
10 changes: 10 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
dh $@

override_dh_auto_install:
dh_auto_install
find ./debian -type f -name "LICENSE" -delete
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
4 changes: 4 additions & 0 deletions debian/upstream/metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Bug-Database: https://github.com/rafaelmardojai/blanket
Bug-Submit: https://github.com/rafaelmardojai/blanket/new
Repository: https://github.com/rafaelmardojai/blanket.git
Repository-Browse: https://github.com/rafaelmardojai/blanket
3 changes: 3 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version=4
opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/foliate-$1\.tar\.gz/ \
https://github.com/rafaelmardojai/blanket/tags .*/?(\d\.\d.\d)\.tar\.gz

0 comments on commit d26b523

Please sign in to comment.