Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
:
testing
>
bash-git-prompt
> bash-git-prompt.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File bash-git-prompt.spec of Package bash-git-prompt
Name: bash-git-prompt Version: 2.7.1 Release: 1%{?dist} Summary: Informative git prompt for bash and fish Group: Development/Tools License: BSD-2-Clause URL: https://github.com/magicmonty/bash-git-prompt Source0: https://github.com/magicmonty/%{name}/archive/%{name}-%{version}.tar.gz #Source1: %%{name}.sh Requires: git-core Requires: gnu-bash BuildArch: noarch %description A bash prompt that displays information about the current git repository. In particular the branch name, difference with remote branch, number of files staged, changed, etc. This package will automatically enable the git prompt for bash after install. It will disable the prompt accordingly after uninstall. Categories: - Utility Custom: DescriptionMD: https://raw.githubusercontent.com/magicmonty/bash-git-prompt/master/README.md PackagerName: nephros %prep %setup -q -n %{name}-%{version} %build # comment %install install -dm 755 %{buildroot}%{_sysconfdir}/profile.d/ touch %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh cat << EOF >> %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh if [ -f %{_datadir}/%{name}/gitprompt.sh ]; then # Set config variables first GIT_PROMPT_ONLY_IN_REPO=1 GIT_PROMPT_THEME=Default source %{_datadir}/%{name}/gitprompt.sh fi EOF install -dm 755 %{buildroot}%{_datadir}/%{name} install -pm 755 *.sh %{buildroot}%{_datadir}/%{name} #install -pm 755 *.py %%{buildroot}%%{_datadir}/%%{name} #install -pm 755 *.fish %%{buildroot}%%{_datadir}/%%{name} #install -pm 644 README.md %%{buildroot}%%{_datadir}/%%{name} install -dm 755 %{buildroot}%{_datadir}/%{name}/themes install -pm 644 themes/*.bgptheme %{buildroot}%{_datadir}/%{name}/themes install -pm 644 themes/*.bgptemplate %{buildroot}%{_datadir}/%{name}/themes #install -Dpm 644 %%SOURCE1 %%{buildroot}%%{_sysconfdir}/profile.d/%%{name}.sh %files %defattr(-,root,root,-) %{_datadir}/%{name} %{_sysconfdir}/profile.d/%{name}.sh %doc README.md %license LICENSE.txt %changelog * Sat Aug 14 2021 Nephros <silafish@nephros.org> - version for SailfishOS Chum * Tue Jun 28 2016 Koustubh Sinkar <ksinkar@gmail.com> - Updating the spec file to reflect more recent changes * Fri Aug 08 2014 Justin Zhang <schnell18@gmail.com - 1.0.1-1 - Initial version of package