mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
add: osu-lazer osu-mime (#195)
Squashed commit of the following: commitb0b62ae308Merge:c8c13b7fcb92e1Author: windowsboy111 <wboy111@outlook.com> Date: Mon Feb 13 17:25:16 2023 +0800 Merge branch 'main' into osu-lazer commitc8c13b7247Author: windowsboy111 <wboy111@outlook.com> Date: Mon Feb 13 17:22:19 2023 +0800 lint: osu-lazer Signed-off-by: windowsboy111 <wboy111@outlook.com> commit5aac8e807aAuthor: windowsboy111 <wboy111@outlook.com> Date: Mon Feb 13 17:21:25 2023 +0800 lint: osu-mime Signed-off-by: windowsboy111 <wboy111@outlook.com> commita1b44acfb2Author: windowsboy111 <wboy111@outlook.com> Date: Mon Feb 13 17:20:00 2023 +0800 fix(update): sccache Signed-off-by: windowsboy111 <wboy111@outlook.com> commitbab4b5fd78Author: windowsboy111 <wboy111@outlook.com> Date: Mon Feb 13 17:19:07 2023 +0800 fix(version): sccache Signed-off-by: windowsboy111 <wboy111@outlook.com> commitaf588816cbMerge:331e4044a3e45aAuthor: madomado <119111128+madonuko@users.noreply.github.com> Date: Mon Feb 13 09:46:21 2023 +0800 Merge branch 'main' into osu-lazer commit331e404240Author: madomado <119111128+madonuko@users.noreply.github.com> Date: Mon Feb 13 01:45:50 2023 +0000 Fix commitf475491593Author: madomado <119111128+madonuko@users.noreply.github.com> Date: Mon Feb 13 01:29:51 2023 +0000 update momento commitea4a70fdf2Author: madomado <119111128+madonuko@users.noreply.github.com> Date: Mon Feb 13 01:27:24 2023 +0000 forgot to add anda.hcl commit4d3284970fAuthor: madomado <119111128+madonuko@users.noreply.github.com> Date: Mon Feb 13 01:22:20 2023 +0000 add: osu-lazer commitcf891b2c35Author: madomado <119111128+madonuko@users.noreply.github.com> Date: Mon Feb 13 01:22:02 2023 +0000 add: osu-mime
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "osu-lazer.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
NoDisplay=true
|
||||
Name=osu!lazer - uri handler
|
||||
MimeType=x-scheme-handler/osu;
|
||||
Icon=/usr/share/pixmaps/osu-lazer.png
|
||||
Comment=Open source free-to-win rhythm game
|
||||
Exec=/usr/bin/osu-lazer %u
|
||||
Categories=Game;
|
||||
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=osu!lazer
|
||||
MimeType=application/x-osu-skin-archive;application/x-osu-replay;application/x-osu-beatmap-archive;
|
||||
Icon=/usr/share/pixmaps/osu-lazer.png
|
||||
Comment=Open source free-to-win rhythm game
|
||||
Exec=/usr/bin/osu-lazer
|
||||
Categories=Game;
|
||||
@@ -0,0 +1,51 @@
|
||||
%define osuresver 2023.202.0
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: osu-lazer
|
||||
Version: 2023.207.0
|
||||
Release: 1%{?dist}
|
||||
Summary: The future of osu! and the beginning of an open era! Commonly known by the codename osu!lazer. Pew pew.
|
||||
ExclusiveArch: x86_64
|
||||
URL: https://osu.ppy.sh/
|
||||
License: MIT, CC-BY-NC-4.0
|
||||
Requires: zlib osu-mime fuse
|
||||
Source0: https://github.com/ppy/osu/releases/download/%{version}/osu.AppImage
|
||||
Source1: https://raw.githubusercontent.com/ppy/osu/%{version}/assets/lazer.png
|
||||
Source2: https://raw.githubusercontent.com/ppy/osu-resources/%{osuresver}/LICENCE.md
|
||||
Source3: osu-lazer.desktop
|
||||
Source4: osu-lazer-uri-handler.desktop
|
||||
|
||||
%description
|
||||
%{summary}
|
||||
|
||||
%prep
|
||||
cat <<EOF > osu-lazer
|
||||
#!/bin/sh
|
||||
env OSU_EXTERNAL_UPDATE_PROVIDER=1 /opt/osu-lazer/osu.AppImage "$@"
|
||||
EOF
|
||||
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -Dm755 %{SOURCE0} %{buildroot}/opt/osu-lazer/osu.AppImage
|
||||
install -Dm755 -t %{buildroot}/usr/bin osu-lazer
|
||||
|
||||
# Install pixmap, desktop and license file
|
||||
mkdir -p %{buildroot}/%{_datadir}/licenses/%{name}/
|
||||
install -Dm644 %{SOURCE1} %{buildroot}/usr/share/pixmaps/osu-lazer.png
|
||||
install -Dm644 %{SOURCE2} %{buildroot}/%{_datadir}/licenses/%{name}/LICENSE.md
|
||||
install -Dm644 -t %{buildroot}/usr/share/applications %{SOURCE3}
|
||||
install -Dm644 -t %{buildroot}/usr/share/applications %{SOURCE4}
|
||||
|
||||
%files
|
||||
%license LICENSE.md
|
||||
/usr/share/applications/osu-lazer*.desktop
|
||||
/usr/bin/osu-lazer
|
||||
/opt/osu-lazer/osu.AppImage
|
||||
/usr/share/pixmaps/osu-lazer.png
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Feb 13 2023 windowsboy111 <windowsboy111@fyralabs.com>
|
||||
- Initial package
|
||||
@@ -0,0 +1,2 @@
|
||||
rpm.version(gh("ppy/osu"));
|
||||
rpm.define("osuresver", gh("ppy/osu-resources"));
|
||||
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "osu-mime.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/x-osu-beatmap">
|
||||
<glob pattern="*.osu"/>
|
||||
<sub-class-of type="text/plain"/>
|
||||
<magic priority="60">
|
||||
<match type="string" offset="0" value="osu file format v"/>
|
||||
</magic>
|
||||
<icon name="osu!"/>
|
||||
<comment>osu! beatmap</comment>
|
||||
</mime-type>
|
||||
<mime-type type="application/x-osu-storyboard">
|
||||
<glob pattern="*.osb"/>
|
||||
<sub-class-of type="text/plain"/>
|
||||
<icon name="osu!"/>
|
||||
<comment>osu! storyboard</comment>
|
||||
</mime-type>
|
||||
<mime-type type="application/x-osu-skin-archive">
|
||||
<glob pattern="*.osk"/>
|
||||
<sub-class-of type="application/zip"/>
|
||||
<icon name="osu!"/>
|
||||
<comment>osu! skin archive</comment>
|
||||
</mime-type>
|
||||
<mime-type type="application/x-osu-replay">
|
||||
<glob pattern="*.osr"/>
|
||||
<sub-class-of type="application/octet-stream"/>
|
||||
<icon name="osu!"/>
|
||||
<comment>osu! replay</comment>
|
||||
</mime-type>
|
||||
<mime-type type="application/x-osu-beatmap-archive">
|
||||
<glob pattern="*.osz"/>
|
||||
<sub-class-of type="application/zip"/>
|
||||
<icon name="osu!"/>
|
||||
<comment>osu! beatmap archive</comment>
|
||||
</mime-type>
|
||||
<mime-type type="application/x-osu-beatmap-archive">
|
||||
<glob pattern="*.osz2"/>
|
||||
<sub-class-of type="application/zip"/>
|
||||
<icon name="osu!"/>
|
||||
<comment>osu! beatmap archive</comment>
|
||||
</mime-type>
|
||||
</mime-info>
|
||||
@@ -0,0 +1,60 @@
|
||||
Name: osu-mime
|
||||
Version: 0.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Provides MIME types for osu! file formats
|
||||
BuildArch: noarch
|
||||
License: AGPLv3
|
||||
Requires: xdg-utils shared-mime-info desktop-file-utils
|
||||
BuildRequires: librsvg2-tools ImageMagick
|
||||
Recommends: osu-handler
|
||||
Source0: https://raw.githubusercontent.com/ppy/osu-web/master/public/images/layout/osu-logo-triangles.svg
|
||||
Source1: https://raw.githubusercontent.com/ppy/osu-web/master/public/images/layout/osu-logo-white.svg
|
||||
Source2: osu-file-extensions.xml
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
|
||||
%build
|
||||
mkdir -p 'icons/hicolor'
|
||||
for size in 16 24 32 48 64 96 128 192 256 384 512 1024; do
|
||||
mkdir -p "icons/hicolor/${size}x${size}/apps"
|
||||
cd "icons/hicolor/${size}x${size}/apps"
|
||||
|
||||
rsvg-convert -w "$size" -h "$size" -f png -o "osu!.png.1" %{SOURCE0}
|
||||
rsvg-convert -w "$size" -h "$size" -f png -o "osu!.png.2" %{SOURCE1}
|
||||
convert -composite 'osu!.png.1' 'osu!.png.2' -gravity center 'osu!.png'
|
||||
rm 'osu!.png.1' 'osu!.png.2'
|
||||
|
||||
cd ../../../..
|
||||
done
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}/usr/share
|
||||
cp -r --no-preserve=ownership icons %{buildroot}/usr/share/icons
|
||||
install -D -m644 %{SOURCE2} %{buildroot}/usr/share/mime/packages/osu-file-extensions.xml
|
||||
|
||||
%post
|
||||
xdg-icon-resource forceupdate --theme hicolor &>/dev/null
|
||||
update-mime-database usr/share/mime &>/dev/null
|
||||
update-desktop-database -q
|
||||
|
||||
%postun
|
||||
xdg-icon-resource forceupdate --theme hicolor &>/dev/null
|
||||
update-mime-database usr/share/mime &>/dev/null
|
||||
update-desktop-database -q
|
||||
|
||||
%posttrans
|
||||
xdg-icon-resource forceupdate --theme hicolor &>/dev/null
|
||||
update-mime-database usr/share/mime &>/dev/null
|
||||
update-desktop-database -q
|
||||
|
||||
|
||||
%files
|
||||
/usr/share/icons/hicolor/*/apps/osu!.png
|
||||
/usr/share/mime/packages/osu-file-extensions.xml
|
||||
|
||||
%changelog
|
||||
* Mon Feb 13 2023 windowsboy111 <windowsboy111@fyralabs.com>
|
||||
- Initial package
|
||||
@@ -6,7 +6,7 @@
|
||||
%global crate sccache
|
||||
|
||||
Name: rust-sccache
|
||||
Version: 0.4.0-pre.7
|
||||
Version: 0.3.3
|
||||
Release: 1%{?dist}
|
||||
Summary: Ccache-like tool
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
rpm.version(gh("mozilla/sccache"));
|
||||
rpm.version(crates("mozilla/sccache"));
|
||||
|
||||
Reference in New Issue
Block a user