diff --git a/anda/apps/armcord-bin/anda.hcl b/anda/apps/armcord-bin/anda.hcl deleted file mode 100644 index 49e068d947..0000000000 --- a/anda/apps/armcord-bin/anda.hcl +++ /dev/null @@ -1,5 +0,0 @@ -project pkg { - rpm { - spec = "armcord-bin.spec" - } -} diff --git a/anda/apps/armcord-bin/armcord-bin.spec b/anda/apps/armcord-bin/armcord-bin.spec deleted file mode 100644 index 9f4316bd83..0000000000 --- a/anda/apps/armcord-bin/armcord-bin.spec +++ /dev/null @@ -1,78 +0,0 @@ -%define debug_package %nil -%global _build_id_links none - -%ifarch x86_64 -%global src ArmCord-%version-linux-x64 -%elifarch aarch64 -%global src ArmCord-%version-linux-arm64 -%elifarch armv7l -%global src ArmCord-%version-linux-armv7l -%endif - -# Exclude private libraries -%global __requires_exclude libffmpeg.so -%global __provides_exclude_from %{_datadir}/armcord/.*\\.so - -Name: armcord-bin -Version: 1.0.2 -Release: 1%?dist -License: OSL-3.0 -Summary: Custom lightweight Discord client designed to enhance your experience -URL: https://github.com/ArmCord/ArmCord -Group: Applications/Internet -Source0: %url/releases/download/v%version/%src.tar.gz -Source1: armcord.png -Source2: https://raw.githubusercontent.com/ArmCord/ArmCord/v%version/README.md -Requires: electron xdg-utils -ExclusiveArch: x86_64 aarch64 armv7l -Conflicts: armcord -BuildRequires: add-determinism - -%description -ArmCord is a custom client designed to enhance your Discord experience -while keeping everything lightweight. - -%prep -%autosetup -n %src - -cat < .armcord.desktop -[Desktop Entry] -Name=ArmCord -Comment=%summary -GenericName=Internet Messenger -Type=Application -Exec=%_bindir/armcord -Icon=armcord -Categories=Network;InstantMessaging; -StartupWMClass=armcord -Keywords=discord;armcord;vencord;shelter;electron; -EOF - -%build - -%install -mkdir -p %buildroot%_bindir %buildroot%_datadir/applications %buildroot%_datadir/pixmaps %buildroot%_datadir/armcord %buildroot%_docdir/%name -cp -a * %buildroot%_datadir/armcord/ -ln -s %_datadir/armcord/armcord %buildroot%_bindir/armcord -chmod +x -R %buildroot%_datadir/armcord/* -chmod 755 %buildroot%_datadir/armcord/armcord -install -Dm644 .armcord.desktop %buildroot%_datadir/applications/ArmCord.desktop -install -Dm644 %SOURCE1 %buildroot%_datadir/pixmaps/armcord.png -install -Dm644 %SOURCE2 %buildroot%_docdir/%name/ - -%files -%doc README.md -%_datadir/armcord -%_bindir/armcord -%_datadir/applications/ArmCord.desktop -%_datadir/pixmaps/armcord.png - -%changelog -* Sat Jun 17 2023 windowsboy111 - 3.2.0-2 -- Remove libnotify dependency. -- Fix desktop entry. -- Set as noarch package because there are not binary files. -- Use /usr/share/ instead of /opt/ - -* Sat May 6 2023 windowsboy111 - 3.1.7-1 -- Initial package diff --git a/anda/apps/armcord-bin/update.rhai b/anda/apps/armcord-bin/update.rhai deleted file mode 100644 index 8c39d434da..0000000000 --- a/anda/apps/armcord-bin/update.rhai +++ /dev/null @@ -1 +0,0 @@ -rpm.version(gh("ArmCord/ArmCord")); diff --git a/anda/apps/armcord/update.rhai b/anda/apps/armcord/update.rhai deleted file mode 100644 index 8c39d434da..0000000000 --- a/anda/apps/armcord/update.rhai +++ /dev/null @@ -1 +0,0 @@ -rpm.version(gh("ArmCord/ArmCord")); diff --git a/anda/apps/legcord-bin/anda.hcl b/anda/apps/legcord-bin/anda.hcl new file mode 100644 index 0000000000..5c31d7cdce --- /dev/null +++ b/anda/apps/legcord-bin/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "legcord-bin.spec" + } +} diff --git a/anda/apps/legcord-bin/legcord-bin.spec b/anda/apps/legcord-bin/legcord-bin.spec new file mode 100644 index 0000000000..aee59dc028 --- /dev/null +++ b/anda/apps/legcord-bin/legcord-bin.spec @@ -0,0 +1,85 @@ +%define debug_package %nil +%global _build_id_links none + +%ifarch x86_64 +%global src LegCord-%version-linux-x64 +%elifarch aarch64 +%global src LegCord-%version-linux-arm64 +%elifarch armv7l +%global src LegCord-%version-linux-armv7l +%endif + +# Exclude private libraries +%global __requires_exclude libffmpeg.so +%global __provides_exclude_from %{_datadir}/armcord/.*\\.so + +Name: legcord-bin +Version: 1.0.2 +Release: 2%?dist +License: OSL-3.0 +Summary: Custom lightweight Discord client designed to enhance your experience +URL: https://github.com/LegCord/LegCord +Group: Applications/Internet +Source0: %url/releases/download/v%version/%src.zip +Source1: legcord.png +Source2: https://raw.githubusercontent.com/LegCord/LegCord/v%version/README.md +Requires: electron xdg-utils +BuildRequires: unzip +ExclusiveArch: x86_64 aarch64 armv7l +Conflicts: legcord +BuildRequires: add-determinism + +%description +LegCord is a custom client designed to enhance your Discord experience +while keeping everything lightweight. + +%prep +mkdir legcord +cd legcord +unzip %SOURCE0 + +cat < .legcord.desktop +[Desktop Entry] +Name=LegCord +Comment=%summary +GenericName=Internet Messenger +Type=Application +Exec=%_bindir/legcord +Icon=legcord +Categories=Network;InstantMessaging; +StartupWMClass=legcord +Keywords=discord;armcord;legcord;vencord;shelter;electron; +EOF + +%build + +%install +cd legcord +mkdir -p %buildroot%_bindir %buildroot%_datadir/applications %buildroot%_datadir/pixmaps %buildroot%_datadir/legcord %buildroot%_docdir/%name +cp -a * %buildroot%_datadir/legcord/ +ln -s %_datadir/legcord/legcord %buildroot%_bindir/legcord +chmod +x -R %buildroot%_datadir/legcord/* +chmod 755 %buildroot%_datadir/legcord/legcord +install -Dm644 .legcord.desktop %buildroot%_datadir/applications/LegCord.desktop +install -Dm644 %SOURCE1 %buildroot%_datadir/pixmaps/legcord.png +install -Dm644 %SOURCE2 %buildroot%_docdir/%name/ + +%files +%doc README.md +%_datadir/legcord +%_bindir/legcord +%_datadir/applications/LegCord.desktop +%_datadir/pixmaps/legcord.png + +%changelog +* Mon Oct 21 2024 madonuko - 1.0.2-2 +- Rename to LegCord. + +* Sat Jun 17 2023 madonuko - 3.2.0-2 +- Remove libnotify dependency. +- Fix desktop entry. +- Set as noarch package because there are not binary files. +- Use /usr/share/ instead of /opt/ + +* Sat May 6 2023 madonuko - 3.1.7-1 +- Initial package diff --git a/anda/apps/armcord-bin/armcord.png b/anda/apps/legcord-bin/legcord.png similarity index 100% rename from anda/apps/armcord-bin/armcord.png rename to anda/apps/legcord-bin/legcord.png diff --git a/anda/apps/legcord-bin/update.rhai b/anda/apps/legcord-bin/update.rhai new file mode 100644 index 0000000000..15bcc4981d --- /dev/null +++ b/anda/apps/legcord-bin/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("LegCord/LegCord")); diff --git a/anda/apps/armcord/anda.hcl b/anda/apps/legcord/anda.hcl similarity index 66% rename from anda/apps/armcord/anda.hcl rename to anda/apps/legcord/anda.hcl index 00e296d1b8..a60a7c45fd 100644 --- a/anda/apps/armcord/anda.hcl +++ b/anda/apps/legcord/anda.hcl @@ -1,6 +1,6 @@ project pkg { arches = ["x86_64"] rpm { - spec = "armcord.spec" + spec = "legcord.spec" } } diff --git a/anda/apps/armcord/launch.sh b/anda/apps/legcord/launch.sh similarity index 100% rename from anda/apps/armcord/launch.sh rename to anda/apps/legcord/launch.sh diff --git a/anda/apps/armcord/armcord.spec b/anda/apps/legcord/legcord.spec similarity index 59% rename from anda/apps/armcord/armcord.spec rename to anda/apps/legcord/legcord.spec index 04750df9a1..1936544b79 100644 --- a/anda/apps/armcord/armcord.spec +++ b/anda/apps/legcord/legcord.spec @@ -1,21 +1,23 @@ %define debug_package %nil -Name: armcord +Name: legcord Version: 1.0.2 -Release: 1%?dist +Release: 2%?dist License: OSL-3.0 Summary: Custom lightweight Discord client designed to enhance your experience -URL: https://github.com/ArmCord/ArmCord +URL: https://github.com/LegCord/LegCord Group: Applications/Internet Source1: launch.sh Packager: madonuko Requires: electron xdg-utils BuildRequires: git-core add-determinism pnpm -Conflicts: armcord-bin +Provides: armcord +Obsoletes: armcord +Conflicts: legcord-bin BuildArch: noarch %description -ArmCord is a custom client designed to enhance your Discord experience +legcord is a custom client designed to enhance your Discord experience while keeping everything lightweight. %prep @@ -23,17 +25,17 @@ rm -rf * git clone %url . git checkout v%version -cat < armcord.desktop +cat < legcord.desktop [Desktop Entry] -Name=ArmCord +Name=LegCord Comment=%summary GenericName=Internet Messenger Type=Application -Exec=/usr/bin/armcord -Icon=armcord +Exec=/usr/bin/legcord +Icon=legcord Categories=Network;InstantMessaging; -StartupWMClass=armcord -Keywords=discord;armcord;vencord;shelter;electron; +StartupWMClass=legcord +Keywords=discord;armcord;legcord;vencord;shelter;electron; EOF @@ -43,21 +45,24 @@ pnpm run packageQuick %install -install -Dm644 dist/*-unpacked/resources/app.asar %buildroot/usr/share/armcord/app.asar +install -Dm644 dist/*-unpacked/resources/app.asar %buildroot/usr/share/legcord/app.asar -install -Dm755 %SOURCE1 %buildroot/usr/bin/armcord -install -Dm644 armcord.desktop %buildroot/usr/share/applications/ArmCord.desktop -install -Dm644 build/icon.png %buildroot/usr/share/pixmaps/armcord.png +install -Dm755 %SOURCE1 %buildroot/usr/bin/legcord +install -Dm644 legcord.desktop %buildroot/usr/share/applications/LegCord.desktop +install -Dm644 build/icon.png %buildroot/usr/share/pixmaps/legcord.png %files %doc README.md %license license.txt -/usr/bin/armcord -/usr/share/applications/ArmCord.desktop -/usr/share/pixmaps/armcord.png -/usr/share/armcord/app.asar +/usr/bin/legcord +/usr/share/applications/LegCord.desktop +/usr/share/pixmaps/legcord.png +/usr/share/legcord/app.asar %changelog +* Mon Oct 21 2024 madonuko - 1.0.2-2 +- Rename to LegCord. + * Mon Aug 26 2024 madonuko - 3.3.0-1 - Update to license.txt diff --git a/anda/apps/legcord/update.rhai b/anda/apps/legcord/update.rhai new file mode 100644 index 0000000000..15bcc4981d --- /dev/null +++ b/anda/apps/legcord/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("LegCord/LegCord"));