feat: init hayase (6.4.26)

This commit is contained in:
Duwangel 2025-09-05 19:45:02 +02:00
commit 2541b5ee60
5 changed files with 139 additions and 0 deletions

23
.SRCINFO Executable file
View file

@ -0,0 +1,23 @@
pkgbase = hayase-desktop-bin
pkgdesc = Formerly Miru. Torrent streaming made simple. Watch anime torrents, real-time with no waiting for downloads (prebuilt binary), successor to miru-bin
pkgver = 6.4.26
pkgrel = 1
url = https://github.com/hayase-app/ui
install = hayase-desktop-bin.install
arch = x86_64
license = BUSL-1.1
depends = xdg-utils
provides = hayase
provides = miru
conflicts = hayase
options = !strip
options = !emptydirs
options = !debug
source = hayase-6.4.26.deb::https://github.com/hayase-app/ui/releases/download/v6.4.26/linux-hayase-6.4.26-linux.deb
source = LICENSE-6.4.26::https://raw.githubusercontent.com/hayase-app/ui/v6.4.26/LICENSE
source = hayase-desktop-bin.install
sha512sums = 90ec69b47cb2c8953c7eeb266ef9bca8a0d29ed4b11adad34f747ffdf5d070eb5d764f4c079e3473ebe5b8c46e23e743fbb2f17841c360cbd19c6502d01c73d0
sha512sums = 28eb0f95d44512e9b901dbcf6c75d9d1fd21d60728d0958f3936f7071a16d62b4999470462b637fc5ba4a35b5fe99838510289f8ba017255e0f13a8dad2e9f29
sha512sums = 67b9bf7da2fc891442b8bfd441a12203717c1f9e96ef94eae62c53138b4e4442b26da9ad4a41a40f79de5f5c93383e092db3629e249c9a04e3f24c415a6a1ba1
pkgname = hayase-desktop-bin

6
.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
*.sh
*.deb
*.tar.zst
pkg/
src/

47
LICENSE-6.4.26 Normal file
View file

@ -0,0 +1,47 @@
Business Source License 1.1
Terms
The Licensor hereby grants you the right to copy, modify, create derivative
works, redistribute, and make non-production use of the Licensed Work. The
Licensor may make an Additional Use Grant, above, permitting limited
production use.
Effective on the Change Date, or the fourth anniversary of the first publicly
available distribution of a specific version of the Licensed Work under this
License, whichever comes first, the Licensor hereby grants you rights under
the terms of the Change License, and the rights granted in the paragraph
above terminate.
If your use of the Licensed Work does not comply with the requirements
currently in effect as described in this License, you must purchase a
commercial license from the Licensor, its affiliated entities, or authorized
resellers, or you must refrain from using the Licensed Work.
All copies of the original and modified Licensed Work, and derivative works
of the Licensed Work, are subject to this License. This License applies
separately for each version of the Licensed Work and the Change Date may vary
for each version of the Licensed Work released by Licensor.
You must conspicuously display this License on each original or modified copy
of the Licensed Work. If you receive the Licensed Work in original or
modified form from a third party, the terms and conditions set forth in this
License apply to your use of that work.
Any use of the Licensed Work in violation of this License will automatically
terminate your rights under this License for the current and all other
versions of the Licensed Work.
This License does not grant you any right in any trademark or logo of
Licensor or its affiliates (provided that you may use a trademark or logo of
Licensor as expressly required by this License).
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
TITLE.
Change Date: 2029-04-01
On the date above, in accordance with the Business Source License, use of this software will be governed by the open source license GPL-3.0.

38
PKGBUILD Normal file
View file

@ -0,0 +1,38 @@
# Maintainer: Duwangel <duwangel@protonmail.com>
# Contributor: Look <notkool@protonmail.com>
# Contributor: hyknn <hyknn@protonmail.com>
pkgname=hayase-desktop-bin
_pkgname=Hayase
pkgver=6.4.26
pkgrel=1
pkgdesc="Formerly Miru. Torrent streaming made simple. Watch anime torrents, real-time with no waiting for downloads (prebuilt binary), successor to miru-bin"
arch=('x86_64')
url="https://github.com/hayase-app/ui"
license=('BUSL-1.1')
depends=('xdg-utils')
provides=(
"${pkgname%-desktop-bin}"
'miru'
)
conflicts=("${pkgname%-desktop-bin}")
options=(
'!strip'
'!emptydirs'
'!debug'
)
install=${pkgname}.install
source=(
"${pkgname%-desktop-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/linux-${pkgname%-desktop-bin}-${pkgver}-linux.deb"
"LICENSE-${pkgver}::https://raw.githubusercontent.com/hayase-app/ui/v${pkgver}/LICENSE"
"${pkgname}.install"
)
sha512sums=('90ec69b47cb2c8953c7eeb266ef9bca8a0d29ed4b11adad34f747ffdf5d070eb5d764f4c079e3473ebe5b8c46e23e743fbb2f17841c360cbd19c6502d01c73d0'
'28eb0f95d44512e9b901dbcf6c75d9d1fd21d60728d0958f3936f7071a16d62b4999470462b637fc5ba4a35b5fe99838510289f8ba017255e0f13a8dad2e9f29'
'67b9bf7da2fc891442b8bfd441a12203717c1f9e96ef94eae62c53138b4e4442b26da9ad4a41a40f79de5f5c93383e092db3629e249c9a04e3f24c415a6a1ba1')
package() {
# Extract package data
tar -xJ -f data.tar.xz -C "${pkgdir}"
install -D -m644 "${pkgdir}/opt/${_pkgname}/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}

25
hayase-desktop-bin.install Executable file
View file

@ -0,0 +1,25 @@
post_install() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
# Link to the binary
ln -sf '/opt/Hayase/hayase' '/usr/bin/hayase'
# SUID chrome-sandbox for Electron 5+
chmod 4755 '/opt/Hayase/chrome-sandbox' || true
update-mime-database /usr/share/mime || true
update-desktop-database /usr/share/applications || true
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
# Delete the link to the binary
rm -f '/usr/bin/hayase'
update-desktop-database -q
}