Skip to content

Commit 111b296

Browse files
committed
Add initial shortwave recipe
1 parent 2637584 commit 111b296

File tree

6 files changed

+126
-0
lines changed

6 files changed

+126
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
libxml2_devel:
2+
- 2.15 # [unix]

recipes/shortwave/menu.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "https://schemas.conda.org/menuinst/menuinst-1-1-0.schema.json",
3+
"menu_name": "Shortwave",
4+
"menu_items": [
5+
{
6+
"name": "Shortwave",
7+
"description": "Listen to internet radio",
8+
"icon": "{{ MENU_DIR }}/icon.{{ ICON_EXT }}",
9+
"command": ["shortwave"],
10+
"platforms": {
11+
"linux": {
12+
"command": ["{{ PREFIX }}/bin/shortwave", "%f"],
13+
"DBusActivatable": true,
14+
"StartupNotify": true,
15+
"Categories": ["GNOME", "GTK", "Audio", "AudioVideo"],
16+
"Keywords": ["Gradio", "Radio", "Stream", "Wave"],
17+
"StartupWMClass": "de.haeckerfelix.Shortwave"
18+
},
19+
"osx": {
20+
"command": ["{{ PREFIX }}/bin/shortwave", "$@"],
21+
"CFBundleVersion": "__PKG_VERSION__"
22+
},
23+
"win": {
24+
"command": ["{{ PREFIX }}/bin/shortwave", "%1"]
25+
}
26+
}
27+
}
28+
]
29+
}

recipes/shortwave/recipe.yaml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
context:
2+
name: Shortwave
3+
version: 5.1.0
4+
5+
package:
6+
name: ${{ name|lower }}
7+
version: ${{ version }}
8+
9+
source:
10+
git: "https://gitlab.gnome.org/World/Shortwave.git"
11+
branch: "pixi"
12+
# url: "https://gitlab.gnome.org/World/${{ name }}/-/archive/${{ version }}/${{ name }}-${{ version }}.tar.gz"
13+
# sha256: 55c5c141a564245b8f8fbe7698663c87a45a7333c2a2c56f06f811ab73b212dd
14+
15+
build:
16+
number: 0
17+
script:
18+
- if: win
19+
then:
20+
- |
21+
set GETTEXT_DIR=%LIBRARY_PREFIX%
22+
set CARGO_BUILD_TARGET=
23+
meson setup %MESON_ARGS% ^
24+
--prefix=%LIBRARY_PREFIX% ^
25+
--wrap-mode=nofallback ^
26+
--buildtype=release ^
27+
builddir
28+
ninja -v -C builddir -j %CPU_COUNT%
29+
ninja -C builddir install -j %CPU_COUNT%
30+
# Menuinst
31+
- mkdir "%PREFIX%\Menu"
32+
- copy /Y "%RECIPE_DIR%\menu.json" "%PREFIX%\Menu\%PKG_NAME%_menu.json"
33+
- copy /Y "%RECIPE_DIR%\shortwave.ico" "%PREFIX%\Menu\icon.ico"
34+
- if: unix
35+
then:
36+
- |
37+
export GETTEXT_DIR=$PREFIX
38+
unset CARGO_BUILD_TARGET
39+
meson setup ${MESON_ARGS} \
40+
--prefix=$PREFIX \
41+
--wrap-mode=nofallback \
42+
builddir
43+
ninja -v -C builddir -j ${CPU_COUNT}
44+
ninja -C builddir install -j ${CPU_COUNT}
45+
# Menuinst
46+
- mkdir -p "${{ PREFIX }}/Menu"
47+
- sed "s/__PKG_VERSION__/${PKG_VERSION}/g" "${{ RECIPE_DIR }}/menu.json" > "${{ PREFIX }}/Menu/${{ PKG_NAME }}_menu.json"
48+
- if: osx
49+
then: install -m0644 "${{ RECIPE_DIR }}/shortwave.icns" "${{ PREFIX }}/Menu/icon.icns"
50+
- if: linux
51+
then: install -m0644 "${{ RECIPE_DIR }}/shortwave.png" "${{ PREFIX }}/Menu/icon.png"
52+
53+
requirements:
54+
build:
55+
- ${{ compiler('c') }}
56+
- ${{ stdlib('c') }}
57+
- ${{ compiler('rust') }}
58+
- meson
59+
- ninja
60+
- pkg-config
61+
- gettext
62+
host:
63+
- libadwaita
64+
- libshumate
65+
- dbus
66+
- zlib
67+
- freetype
68+
- expat
69+
- libxml2-devel
70+
- gstreamer
71+
- gst-plugins-base
72+
- gst-plugins-good
73+
- gst-plugins-bad
74+
ignore_run_exports:
75+
by_name:
76+
- libzlib
77+
- libexpat
78+
79+
tests:
80+
- package_contents:
81+
bin:
82+
- shortwave
83+
about:
84+
homepage: https://apps.gnome.org/Shortwave/
85+
summary: Listen to internet radio
86+
description: |
87+
Shortwave is an internet radio player that provides access to a station
88+
database with over 50,000 stations.
89+
license: GPL-3.0-or-later
90+
license_file: COPYING.md
91+
repository: https://gitlab.gnome.org/GNOME/json-glib
92+
93+
extra:
94+
recipe-maintainers:
95+
- haecker-felix

recipes/shortwave/shortwave.icns

524 KB
Binary file not shown.

recipes/shortwave/shortwave.ico

11.8 KB
Binary file not shown.

recipes/shortwave/shortwave.png

39.3 KB
Loading

0 commit comments

Comments
 (0)