diff --git a/README.md b/README.md index e654e0f..bbb1fd3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # sonar-artworks +Sonar Linux Artworks. + diff --git a/sonar-artworks.spec b/sonar-artworks.spec new file mode 100644 index 0000000..bde6a29 --- /dev/null +++ b/sonar-artworks.spec @@ -0,0 +1,50 @@ +Name: sonar-artworks +Version: 20190119git +Release: 1mamba +Summary: Sonar Linux Artworks +Group: System/Multimedia +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/manjaro/sonar-artworks +## GITSOURCE https://github.com/manjaro/sonar-artworks.git master +Source: https://github.com/manjaro/sonar-artworks.git/master/sonar-artworks-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: sound-theme-freedesktop +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Sonar Linux Artworks. + +%prep +%setup -q + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d -m0755 %{buildroot}%{_datadir}/sounds/freedesktop/stereo +cp -a sounds/sonar %{buildroot}%{_datadir}/sounds/ + +ln -s ../../sonar/stereo/system-ready.oga %{buildroot}%{_datadir}/sounds/freedesktop/stereo/system-bootup.oga +ln -s ../../sonar/stereo/system-shutdown.oga %{buildroot}%{_datadir}/sounds/freedesktop/stereo/system-shutdown.oga + +#for f in %{buildroot}%{_datadir}/sounds/sonar/stereo/*.oga; do +# [ -e %{_datadir}/sounds/freedesktop/stereo/`basename $f` ] || \ +# ln -s ../../sonar/stereo/`basename $f` %{buildroot}%{_datadir}/sounds/freedesktop/stereo/`basename $f` +#done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_datadir}/sounds/sonar +%{_datadir}/sounds/sonar/* +%{_datadir}/sounds/freedesktop/stereo/* + +%changelog +* Sat Jan 19 2019 Silvan Calarco 20190119git-1mamba +- package created using the webbuild interface