mirror of
https://github.com/YellowJacketLinux/LFS.git
synced 2025-01-23 14:32:15 +08:00
script for source pack
This commit is contained in:
parent
afe93942da
commit
b76dcfef60
18
SOURCES/get-msnake-src.sh
Normal file
18
SOURCES/get-msnake-src.sh
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Warning: check https://github.com/mogria/msnake for latest commit"
|
||||
|
||||
sleep 5
|
||||
|
||||
MYTEMP=`mktemp -d msnake.XXXXXXXXXXXX`
|
||||
pushd ${MYTEMP}
|
||||
|
||||
git clone git@github.com:mogria/msnake.git
|
||||
mv msnake msnake-20200201
|
||||
|
||||
tar -jcf msnake-20200201.tar.bz2 msnake-20200201
|
||||
popd
|
||||
mv ${MYTEMP}/msnake-20200201.tar.bz2 .
|
||||
rm -rf ${MYTEMP}
|
||||
|
||||
# EOF
|
@ -2,13 +2,14 @@
|
||||
|
||||
Name: msnake
|
||||
Version: 0.0.%{gitdate}
|
||||
Release: %{?rel}0.rc1%{?dist}
|
||||
Release: %{?rel}0.rc2%{?dist}
|
||||
Summary: A curses based snakes game
|
||||
|
||||
Group: Console/Games
|
||||
License: MIT
|
||||
URL: https://github.com/mogria/msnake
|
||||
Source0: %{name}-%{gitdate}.tar.bz2
|
||||
Source1: get-msnake-src.sh
|
||||
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: %{_bindir}/cmake
|
||||
@ -19,6 +20,7 @@ A simple snake game written in C using the ncurses library.
|
||||
|
||||
%prep
|
||||
%setup -n %{name}-%{gitdate}
|
||||
cp %{SOURCE1} .
|
||||
|
||||
|
||||
%build
|
||||
@ -39,10 +41,13 @@ make install DESTDIR=%{buildroot}
|
||||
%defattr(-,root,root,-)
|
||||
%attr(0755,root,root) %{_bindir}/msnake
|
||||
%license LICENSE
|
||||
%doc LICENSE README.md
|
||||
%doc LICENSE README.md get-msnake-src.sh
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun May 21 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.0.20200201-0.rc2
|
||||
- Shell script to fetch source from git and tarball it.
|
||||
|
||||
* Fri Apr 28 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.0.20200201-0.rc1
|
||||
* Initial spec file
|
||||
|
Loading…
Reference in New Issue
Block a user