Skip to content

Commit

Permalink
spec file (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
elegos committed Jan 13, 2025
1 parent 5070f87 commit c47fc86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ icon_file="arctis_manager/images/steelseries_logo.svg"
applications_dir="${chroot_path}${install_prefix}/share/applications/"
icons_dir="${chroot_path}/usr/share/icons/hicolor/scalable/apps/"
bin_dir="${chroot_path}${install_prefix}/bin"
lib_dir="${chroot_path}${install_prefix}/lib/arctis-manager"
unchrooted_lib_dir="${install_prefix}/lib/arctis-manager"
lib_dir="${chroot_path}${unchrooted_lib_dir}"
udev_dir="${chroot_path}/usr/lib/udev/rules.d/"
systemd_dir="${chroot_path}/usr/lib/systemd/user/"

Expand All @@ -50,14 +51,14 @@ function install() {
superuserdo cp "${file}" "${dest_file}"

# Replace placeholders
superuserdo sed -i "s|{{LIBDIR}}|${lib_dir}|g" "${dest_file}"
superuserdo sed -i "s|{{LIBDIR}}|${unchrooted_lib_dir}|g" "${dest_file}"
done

echo "Installing desktop file in ${applications_dir}"
dest_file="${applications_dir}/$(basename "${desktop_file}")"
superuserdo cp "${desktop_file}" "${dest_file}"
# Replace placeholders
superuserdo sed -i "s|{{LIBDIR}}|${lib_dir}|g" "${dest_file}"
superuserdo sed -i "s|{{LIBDIR}}|${unchrooted_lib_dir}|g" "${dest_file}"

echo "Installing icon file in ${icons_dir}"
dest_file="${icons_dir}/arctis_manager.svg"
Expand Down
6 changes: 4 additions & 2 deletions package_managers/ArctisManager.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Summary: SteelSeries GG software replacement for Linux to manage Arctis d
License: GPL-3.0
URL: https://github.com/elegos/Linux-Arctis-Manager
Source0: https://github.com/elegos/Linux-Arctis-Manager/archive/refs/tags/v%{version}.zip
BuildArch: noarch
BuildArch: x86_64

# Dipendenze richieste per il pacchetto
BuildRequires: bash, wget
Expand Down Expand Up @@ -41,6 +41,8 @@ bash install.sh
/usr/local/lib/arctis-manager
/usr/lib/udev/rules.d/91-steelseries-arctis.rules
/usr/lib/systemd/user/arctis-manager.service
/usr/share/icons/hicolor/scalable/apps/arctis-manager.svg
/usr/share/icons/hicolor/scalable/apps/arctis_manager.svg

%changelog
* Mon Jan 13 2025 Giacomo Furlan <giacomo@giacomofurlan.name> - 1.6.1-1
- First packaged version of the app

0 comments on commit c47fc86

Please sign in to comment.