mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-27 15:15:00 +00:00
refactor: rewrite all build scripts
* supports generate rpm package on Linux * use a global VERSION file
This commit is contained in:
parent
de5a60c6dd
commit
7f7e5ef5f8
11 changed files with 102 additions and 54 deletions
31
build/resources/rpm/SPECS/build.spec
Normal file
31
build/resources/rpm/SPECS/build.spec
Normal file
|
@ -0,0 +1,31 @@
|
|||
Name: sourcegit
|
||||
Version: %_version
|
||||
Release: 1
|
||||
Summary: Open-source & Free Git Gui Client
|
||||
License: MIT
|
||||
URL: https://sourcegit-scm.github.io/
|
||||
Source: https://github.com/sourcegit-scm/sourcegit/archive/refs/tags/v%_version.tar.gz
|
||||
Requires: libX11.so.6
|
||||
Requires: libSM.so.6
|
||||
|
||||
%define _build_id_links none
|
||||
|
||||
%description
|
||||
Open-source & Free Git Gui Client
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/opt/sourcegit
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/applications
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/icons
|
||||
cp -r ../../_common/usr $RPM_BUILD_ROOT/
|
||||
cp -f ../../../SourceGit/* $RPM_BUILD_ROOT/opt/sourcegit/
|
||||
chmod 755 -R $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
/opt
|
||||
/usr/bin
|
||||
/usr/share
|
||||
|
||||
%changelog
|
||||
# skip
|
Loading…
Add table
Add a link
Reference in a new issue