switched to meson
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/builddir
|
@ -54,7 +54,7 @@ Building
|
|||||||
--------
|
--------
|
||||||
|
|
||||||
Build dependencies:
|
Build dependencies:
|
||||||
- DistUtilsExtra
|
- meson
|
||||||
|
|
||||||
Dependencies:
|
Dependencies:
|
||||||
- Gtk3
|
- Gtk3
|
||||||
@ -70,8 +70,9 @@ Run:
|
|||||||
```bash
|
```bash
|
||||||
git clone https://github.com/SoongNoonien/mpdevil.git
|
git clone https://github.com/SoongNoonien/mpdevil.git
|
||||||
cd mpdevil
|
cd mpdevil
|
||||||
sudo python3 setup.py install
|
meson builddir --prefix=/usr/local
|
||||||
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
|
sudo ninja -C builddir install
|
||||||
|
sudo glib-compile-schemas /usr/local/share/glib-2.0/schemas
|
||||||
sudo gtk-update-icon-cache
|
sudo gtk-update-icon-cache
|
||||||
sudo update-desktop-database
|
sudo update-desktop-database
|
||||||
```
|
```
|
||||||
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 456 B After Width: | Height: | Size: 456 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 980 B After Width: | Height: | Size: 980 B |
Before Width: | Height: | Size: 838 B After Width: | Height: | Size: 838 B |
Before Width: | Height: | Size: 657 B After Width: | Height: | Size: 657 B |
14
data/meson.build
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
i18n.merge_file(
|
||||||
|
input: 'org.mpdevil.mpdevil.desktop.in',
|
||||||
|
output: 'org.mpdevil.mpdevil.desktop',
|
||||||
|
type: 'desktop',
|
||||||
|
po_dir: '../po',
|
||||||
|
install: true,
|
||||||
|
install_dir: join_paths(get_option('datadir'), 'applications')
|
||||||
|
)
|
||||||
|
|
||||||
|
install_data('org.mpdevil.mpdevil.appdata.xml', install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||||||
|
install_data('org.mpdevil.mpdevil.gschema.xml', install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas'))
|
||||||
|
#install_data('help_overlay.ui', install_dir: join_paths(get_option('datadir'), 'share/mpdevil'))
|
||||||
|
|
||||||
|
install_subdir('icons', install_dir: get_option('datadir'))
|
@ -1,11 +1,10 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=mpdevil
|
Name=mpdevil
|
||||||
GenericName=MPD Client
|
GenericName=MPD Client
|
||||||
_Comment=A simple music browser for MPD
|
Comment=A simple music browser for MPD
|
||||||
Exec=mpdevil
|
Exec=mpdevil
|
||||||
Icon=org.mpdevil.mpdevil
|
Icon=org.mpdevil.mpdevil
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
Categories=Audio;AudioVideo;Player;GTK
|
Categories=Audio;AudioVideo;Player;GTK
|
||||||
|
|
||||||
|
10
meson.build
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
project('mpdevil',
|
||||||
|
version: '1.4.1',
|
||||||
|
meson_version: '>= 0.47.0',
|
||||||
|
)
|
||||||
|
|
||||||
|
i18n = import('i18n')
|
||||||
|
|
||||||
|
subdir('data')
|
||||||
|
subdir('src')
|
||||||
|
subdir('po')
|
2
po/LINGUAS
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
de
|
||||||
|
nl
|
@ -1,4 +1,3 @@
|
|||||||
[encoding: UTF-8]
|
[encoding: UTF-8]
|
||||||
bin/mpdevil
|
src/mpdevil
|
||||||
data/org.mpdevil.mpdevil.desktop.in
|
data/org.mpdevil.mpdevil.desktop.in
|
||||||
|
|
||||||
|
1
po/meson.build
Normal file
@ -0,0 +1 @@
|
|||||||
|
i18n.gettext('mpdevil', preset: 'glib')
|
30
setup.py
@ -1,30 +0,0 @@
|
|||||||
#!/usr/bin/python3
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import DistUtilsExtra.auto
|
|
||||||
|
|
||||||
DistUtilsExtra.auto.setup(
|
|
||||||
name='mpdevil',
|
|
||||||
version='1.4.1', # sync with bin/mpdevil
|
|
||||||
author="Martin Wagner",
|
|
||||||
author_email="martin.wagner.dev@gmail.com",
|
|
||||||
description=('A simple music browser for MPD'),
|
|
||||||
url="https://github.com/SoongNoonien/mpdevil",
|
|
||||||
license='GPL-3.0',
|
|
||||||
data_files=[
|
|
||||||
('share/metainfo/', ['data/org.mpdevil.mpdevil.appdata.xml']),
|
|
||||||
('share/icons/hicolor/16x16/apps/', ['data/icons/16x16/org.mpdevil.mpdevil.png']),
|
|
||||||
('share/icons/hicolor/24x24/apps/', ['data/icons/24x24/org.mpdevil.mpdevil.png']),
|
|
||||||
('share/icons/hicolor/32x32/apps/', ['data/icons/32x32/org.mpdevil.mpdevil.png']),
|
|
||||||
('share/icons/hicolor/48x48/apps/', ['data/icons/48x48/org.mpdevil.mpdevil.png']),
|
|
||||||
('share/icons/hicolor/64x64/apps/', ['data/icons/64x64/org.mpdevil.mpdevil.png']),
|
|
||||||
('share/icons/hicolor/128x128/apps/', ['data/icons/128x128/org.mpdevil.mpdevil.png']),
|
|
||||||
('share/icons/hicolor/256x256/apps/', ['data/icons/256x256/org.mpdevil.mpdevil.png']),
|
|
||||||
('share/icons/hicolor/scalable/apps/', ['data/icons/scalable/org.mpdevil.mpdevil.svg']),
|
|
||||||
('share/icons/hicolor/scalable/apps/', ['data/icons/scalable/org.mpdevil.mpdevil-symbolic.svg']),
|
|
||||||
('share/icons/hicolor/scalable/status/', ['data/icons/scalable/org.mpdevil.mpdevil-single-symbolic.svg']),
|
|
||||||
('share/icons/hicolor/scalable/status/', ['data/icons/scalable/org.mpdevil.mpdevil-consume-symbolic.svg']),
|
|
||||||
('share/icons/hicolor/scalable/status/', ['data/icons/scalable/org.mpdevil.mpdevil-consume-symbolic-rtl.svg']),
|
|
||||||
('share/icons/hicolor/scalable/actions/', ['data/icons/scalable/org.mpdevil.mpdevil-lyrics-symbolic.svg']),
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
10
src/meson.build
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#conf = configuration_data()
|
||||||
|
|
||||||
|
#configure_file(
|
||||||
|
# input: 'mpdevil.py',
|
||||||
|
# output: 'mpdevil',
|
||||||
|
# configuration: conf,
|
||||||
|
# install_dir: join_paths(get_option('prefix'), get_option('bindir'))
|
||||||
|
#)
|
||||||
|
|
||||||
|
install_data('mpdevil', install_dir: join_paths(get_option('prefix'), get_option('bindir')))
|