From 2541b5ee60954b67f6b835e0e4eae61bae465afb Mon Sep 17 00:00:00 2001 From: Duwangel Date: Fri, 5 Sep 2025 19:45:02 +0200 Subject: [PATCH] feat: init hayase (6.4.26) --- .SRCINFO | 23 +++++++++++++++++++ .gitignore | 6 +++++ LICENSE-6.4.26 | 47 ++++++++++++++++++++++++++++++++++++++ PKGBUILD | 38 ++++++++++++++++++++++++++++++ hayase-desktop-bin.install | 25 ++++++++++++++++++++ 5 files changed, 139 insertions(+) create mode 100755 .SRCINFO create mode 100644 .gitignore create mode 100644 LICENSE-6.4.26 create mode 100644 PKGBUILD create mode 100755 hayase-desktop-bin.install diff --git a/.SRCINFO b/.SRCINFO new file mode 100755 index 000000000000..6881d8998ec0 --- /dev/null +++ b/.SRCINFO @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1b911386a362 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.sh +*.deb +*.tar.zst + +pkg/ +src/ diff --git a/LICENSE-6.4.26 b/LICENSE-6.4.26 new file mode 100644 index 000000000000..43dcefab504e --- /dev/null +++ b/LICENSE-6.4.26 @@ -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. diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ad49085553c5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Duwangel +# Contributor: Look +# Contributor: hyknn +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" +} diff --git a/hayase-desktop-bin.install b/hayase-desktop-bin.install new file mode 100755 index 000000000000..017901d77383 --- /dev/null +++ b/hayase-desktop-bin.install @@ -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 +}