mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-24 12:30:39 +00:00
update files and install for third-party licenses
This commit is contained in:
@@ -54,10 +54,19 @@ It lets you pick a user, enter your password, choose a Wayland session, and pick
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
install -d %{buildroot}%{_licensedir}/%{name}/third_party
|
||||
find third_party -type f \( -name "LICENSE*" -o -name "COPYING*" -o -name "NOTICE*" \) | while read -r file; do
|
||||
# Create the destination subdirectory
|
||||
dest_dir="%{buildroot}%{_licensedir}/%{name}/$(dirname "$file")"
|
||||
install -d "$dest_dir"
|
||||
# Copy the file to its specific subfolder
|
||||
install -p -m 0644 "$file" "$dest_dir/"
|
||||
done
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_licensedir}/%{name}/third_party/
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/%{name}-apply-appearance
|
||||
%{_bindir}/%{name}-compositor
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
rpm.global("commit", get("https://api.github.com/repos/noctalia-dev/noctalia-greeter/commits/main").json().sha);
|
||||
rpm.global("commit", gh_commit("noctalia-dev/noctalia-greeter"));
|
||||
if rpm.changed() {
|
||||
rpm.global("ver", gh("noctalia-dev/noctalia-greeter"));
|
||||
rpm.global("commit_date", date());
|
||||
|
||||
Reference in New Issue
Block a user