mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-11 06:00:39 +00:00
67 lines
1.6 KiB
RPMSpec
67 lines
1.6 KiB
RPMSpec
%define debug_package %nil
|
|
|
|
Name: armcord
|
|
Version: 3.2.3
|
|
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
|
|
Source1: launch.sh
|
|
Requires: electron xdg-utils
|
|
BuildRequires: nodejs-npm git
|
|
Conflicts: armcord-bin
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
ArmCord is a custom client designed to enhance your Discord experience
|
|
while keeping everything lightweight.
|
|
|
|
%prep
|
|
git clone %url .
|
|
git checkout v%version
|
|
|
|
cat <<EOF > armcord.desktop
|
|
[Desktop Entry]
|
|
Name=ArmCord
|
|
Comment=%summary
|
|
GenericName=Internet Messenger
|
|
Type=Application
|
|
Exec=/usr/bin/armcord
|
|
Icon=armcord
|
|
Categories=Network;InstantMessaging;
|
|
StartupWMClass=armcord
|
|
Keywords=discord;armcord;vencord;shelter;electron;
|
|
EOF
|
|
|
|
|
|
%build
|
|
npx pnpm@7 install --no-frozen-lockfile
|
|
npm run packageQuick
|
|
|
|
|
|
%install
|
|
install -Dm644 dist/*-unpacked/resources/app.asar %buildroot/usr/share/armcord/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
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE
|
|
/usr/bin/armcord
|
|
/usr/share/applications/ArmCord.desktop
|
|
/usr/share/pixmaps/armcord.png
|
|
/usr/share/armcord/app.asar
|
|
|
|
%changelog
|
|
* Sat Jun 17 2023 windowsboy111 <windowsboy111@fyralabs.com> - 3.2.0-2
|
|
- Remove libnotify dependency.
|
|
- Fix desktop entry.
|
|
- Set as noarch package because there are not binary files.
|
|
|
|
* Sat May 6 2023 windowsboy111 <windowsboy111@fyralabs.com> - 3.1.7-1
|
|
- Initial package
|
|
|