Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions recipes/shortwave/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
libxml2_devel:
- 2.15
29 changes: 29 additions & 0 deletions recipes/shortwave/menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "https://schemas.conda.org/menuinst/menuinst-1-1-0.schema.json",
"menu_name": "Shortwave",
"menu_items": [
{
"name": "Shortwave",
"description": "Listen to internet radio",
"icon": "{{ MENU_DIR }}/icon.{{ ICON_EXT }}",
"command": ["shortwave"],
"platforms": {
"linux": {
"command": ["{{ PREFIX }}/bin/shortwave", "%f"],
"DBusActivatable": true,
"StartupNotify": true,
"Categories": ["GNOME", "GTK", "Audio", "AudioVideo"],
"Keywords": ["Gradio", "Radio", "Stream", "Wave"],
"StartupWMClass": "de.haeckerfelix.Shortwave"
},
"osx": {
"command": ["{{ PREFIX }}/bin/shortwave", "$@"],
"CFBundleVersion": "__PKG_VERSION__"
},
"win": {
"command": ["{{ PREFIX }}/bin/shortwave", "%1"]
}
}
}
]
}
104 changes: 104 additions & 0 deletions recipes/shortwave/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
context:
name: Shortwave
version: 5.1.0

package:
name: ${{ name|lower }}
version: ${{ version }}

source:
git: "https://gitlab.gnome.org/World/Shortwave.git"
branch: "pixi"
# url: "https://gitlab.gnome.org/World/${{ name }}/-/archive/${{ version }}/${{ name }}-${{ version }}.tar.gz"
# sha256: 55c5c141a564245b8f8fbe7698663c87a45a7333c2a2c56f06f811ab73b212dd

build:
number: 0
skip:
- linux
script:
- cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
- if: win
then:
- |
set GETTEXT_DIR=%LIBRARY_PREFIX%
set CARGO_BUILD_TARGET=
meson setup %MESON_ARGS% ^
--prefix=%LIBRARY_PREFIX% ^
--wrap-mode=nofallback ^
--buildtype=release ^
builddir
ninja -v -C builddir -j %CPU_COUNT%
ninja -C builddir install -j %CPU_COUNT%
# Menuinst
- mkdir "%PREFIX%\Menu"
- copy /Y "%RECIPE_DIR%\menu.json" "%PREFIX%\Menu\%PKG_NAME%_menu.json"
- copy /Y "%RECIPE_DIR%\shortwave.ico" "%PREFIX%\Menu\icon.ico"
- if: unix
then:
- |
export GETTEXT_DIR=$PREFIX
unset CARGO_BUILD_TARGET
meson setup ${MESON_ARGS} \
--prefix=$PREFIX \
--wrap-mode=nofallback \
builddir
ninja -v -C builddir -j ${CPU_COUNT}
ninja -C builddir install -j ${CPU_COUNT}
# Menuinst
- mkdir -p "${{ PREFIX }}/Menu"
- sed "s/__PKG_VERSION__/${PKG_VERSION}/g" "${{ RECIPE_DIR }}/menu.json" > "${{ PREFIX }}/Menu/${{ PKG_NAME }}_menu.json"
- if: osx
then: install -m0644 "${{ RECIPE_DIR }}/shortwave.icns" "${{ PREFIX }}/Menu/icon.icns"
- if: linux
then: install -m0644 "${{ RECIPE_DIR }}/shortwave.png" "${{ PREFIX }}/Menu/icon.png"

requirements:
build:
- ${{ compiler('c') }}
- ${{ stdlib('c') }}
- ${{ compiler('rust') }}
- cargo-bundle-licenses
- meson
- ninja
- pkg-config
- gettext
host:
- expat
- freetype
- gst-plugins-bad
- gst-plugins-base
- gst-plugins-good
- gstreamer
- libadwaita
- sqlite
- libxml2-devel
- zlib
- if: not win
then:
- libshumate
- dbus
ignore_run_exports:
by_name:
- libzlib
- libexpat

tests:
- package_contents:
bin:
- shortwave
about:
homepage: https://apps.gnome.org/Shortwave/
summary: Listen to internet radio
description: |
Shortwave is an internet radio player that provides access to a station
database with over 50,000 stations.
license: GPL-3.0-or-later
license_file:
- COPYING.md
- THIRDPARTY.yml
repository: https://gitlab.gnome.org/World/Shortwave

extra:
recipe-maintainers:
- haecker-felix
Binary file added recipes/shortwave/shortwave.icns
Binary file not shown.
Binary file added recipes/shortwave/shortwave.ico
Binary file not shown.
Binary file added recipes/shortwave/shortwave.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading