-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: legcord* * fix builds
- Loading branch information
Showing
2 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,28 +2,26 @@ | |
|
||
Name: legcord | ||
Version: 1.0.2 | ||
Release: 2%?dist | ||
Release: 3%?dist | ||
License: OSL-3.0 | ||
Summary: Custom lightweight Discord client designed to enhance your experience | ||
URL: https://github.com/LegCord/LegCord | ||
Group: Applications/Internet | ||
Source1: launch.sh | ||
Packager: madonuko <[email protected]> | ||
Requires: electron xdg-utils | ||
BuildRequires: git-core add-determinism pnpm | ||
Provides: armcord | ||
Obsoletes: armcord | ||
Obsoletes: armcord < 3.3.2-1 | ||
Conflicts: legcord-bin | ||
BuildArch: noarch | ||
BuildRequires: anda-srpm-macros pnpm | ||
|
||
%description | ||
legcord is a custom client designed to enhance your Discord experience | ||
while keeping everything lightweight. | ||
|
||
%prep | ||
rm -rf * | ||
git clone %url . | ||
git checkout v%version | ||
%git_clone %url v%version | ||
|
||
cat <<EOF > legcord.desktop | ||
[Desktop Entry] | ||
|
@@ -51,13 +49,23 @@ 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 | ||
|
||
ln -s %_datadir/legcord %buildroot%_datadir/armcord | ||
|
||
# HACK: rpm bug for unability to replace existing files on system. | ||
%pre | ||
if [ -d %_datadir/armcord ] && [ ! -L %_datadir/armcord ]; then | ||
echo "Found old %_datadir/armcord directory, removing…" | ||
rm -rf %_datadir/armcord | ||
fi | ||
|
||
%files | ||
%doc README.md | ||
%license license.txt | ||
/usr/bin/legcord | ||
/usr/share/applications/LegCord.desktop | ||
/usr/share/pixmaps/legcord.png | ||
/usr/share/legcord/app.asar | ||
/usr/share/armcord | ||
|
||
%changelog | ||
* Mon Oct 21 2024 madonuko <[email protected]> - 1.0.2-2 | ||
|