Created first Debian package.
This commit is contained in:
parent
636e3d5790
commit
440b641a44
|
@ -4,9 +4,90 @@
|
|||
|
||||
% LibreWands is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
% You should have received a copy of the GNU General Public License along with LibreWands. If not, see https://www.gnu.org/licenses/.
|
||||
% You should have received a copy of the GNU General Public License along with LibreWands. If not, see https://www.gnu.org/licenses/.
|
||||
|
||||
% ---
|
||||
|
||||
\part{Packaging Manual}
|
||||
\chapter{Operating System Priority}
|
||||
|
||||
\subsubsection{Highest Priority - FSF-Endorsed Native Package Manager Systems}
|
||||
|
||||
\begin{description}
|
||||
\item[GuixSD] A Guix recipe may be found in the \texttt{Packaging/} directory of this project. It needs to be modified to work correctly.
|
||||
\item[Dragora] Unable to contribute packages.
|
||||
\item[Ututo S] Unable to contribute packages.
|
||||
\item[Dynebolic] Unable to contribute packages.
|
||||
\end{description}
|
||||
|
||||
\subsubsection{Medium High Priority - Libre Native Package Manager Systems}
|
||||
|
||||
\begin{description}
|
||||
\item[Debian]
|
||||
\end{description}
|
||||
|
||||
\subsubsection{Low High Priority - Native Package Manager Systems for FSF-Endorsed Distributions}
|
||||
|
||||
\begin{description}
|
||||
\item[Arch]
|
||||
\end{description}
|
||||
|
||||
\subsubsection{High Medium Priority - FSF-Endorsed Distributions}
|
||||
|
||||
\begin{description}
|
||||
\item[Parabola]
|
||||
\item[Hyperbola]
|
||||
\item[PureOS]
|
||||
\item[Trisquel]
|
||||
\end{description}
|
||||
|
||||
\subsubsection{Medium Priority - Libre Software Distributions}
|
||||
|
||||
\begin{description}
|
||||
\item[ReplicantOS]
|
||||
\item[FreeDOS]
|
||||
\item[ReactOS]
|
||||
\end{description}
|
||||
|
||||
\subsubsection{Low Medium Priority - Popular Proprietary Systems}
|
||||
|
||||
\begin{description}
|
||||
\item[Android]
|
||||
\item[Windows 64-bit]
|
||||
\item[iOS]
|
||||
\item[MacOS X]
|
||||
\end{description}
|
||||
|
||||
\subsubsection{High Low Priority - Native package manager systems}
|
||||
|
||||
\begin{description}
|
||||
\item[Flatpak]
|
||||
\item[CentOS]
|
||||
\item[Snap]
|
||||
\item[Gentoo]
|
||||
\item[Puppy]
|
||||
\item[Alpine]
|
||||
\item[NixOS]
|
||||
\item[BSD]
|
||||
\item[Solaris]
|
||||
\item[Haiku]
|
||||
\end{description}
|
||||
|
||||
\subsubsection{Medium Low Priority - Source Available Systems}
|
||||
|
||||
\begin{description}
|
||||
\item[PostmarketOS]
|
||||
\item[Other GNU and nonGNU Linux distributions]
|
||||
\item[TempleOS]
|
||||
\end{description}
|
||||
|
||||
\subsubsection{Low Low Priority - Unpopular Proprietary Systems}
|
||||
|
||||
\begin{description}
|
||||
\item[Unix]
|
||||
\item[MSDOS]
|
||||
\item[CP/M]
|
||||
\item[OS/2]
|
||||
\item[Windows 16 and 32 bit]
|
||||
\end{description}
|
||||
|
||||
|
|
21
Makefile
21
Makefile
|
@ -11,28 +11,29 @@ version = 0.0.3
|
|||
all: editMaps
|
||||
|
||||
install:
|
||||
mkdir -p /usr/
|
||||
mkdir -p /usr/games/
|
||||
cp Build/librewands_editmaps /usr/games/librewands_editmaps
|
||||
mkdir -p $(DESTDIR)/usr/
|
||||
mkdir -p $(DESTDIR)/usr/games/
|
||||
cp Build/librewands_editmaps $(DESTDIR)/usr/games/librewands_editmaps
|
||||
|
||||
|
||||
install-pdf:
|
||||
mkdir -p /usr/
|
||||
mkdir -p /usr/share/
|
||||
mkdir -p /usr/share/doc/
|
||||
mkdir -p /usr/share/doc/librewands/
|
||||
cp Build/LibreWands.pdf /usr/share/doc/librewands/
|
||||
mkdir -p $(DESTDIR)/usr/
|
||||
mkdir -p $(DESTDIR)/usr/share/
|
||||
mkdir -p $(DESTDIR)/usr/share/doc/
|
||||
mkdir -p $(DESTDIR)/usr/share/doc/librewands/
|
||||
cp Build/LibreWands.pdf $(DESTDIR)/usr/share/doc/librewands/
|
||||
|
||||
uninstall:
|
||||
rm /usr/games/librewands_editmaps
|
||||
rm $(DESTDIR)/usr/games/librewands_editmaps
|
||||
|
||||
uninstall-pdf:
|
||||
rm -r /usr/share/doc/librewands/
|
||||
rm -r $(DESTDIR)/usr/share/doc/librewands/
|
||||
|
||||
pdf:
|
||||
cd Build/;pdflatex ../Documentation/LibreWands.tex
|
||||
|
||||
clean:
|
||||
mkdir -p Build/
|
||||
rm -r Build/*
|
||||
|
||||
dist:
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
version=0.0.3
|
||||
|
||||
if [ "$1" == "prep" ]
|
||||
then
|
||||
cd ..
|
||||
make clean
|
||||
make dist
|
||||
cd Build/
|
||||
cp "librewands-0.0.3.tar.gz" "librewands_$version.orig.tar.gz"
|
||||
tar xf "librewands_$version.orig.tar.gz"
|
||||
cd "librewands-$version"
|
||||
mkdir Build/
|
||||
echo "Trash" > Build/trash
|
||||
mkdir debian
|
||||
export EMAIL="lofenyy@linuxmail.org"
|
||||
dch --create -v "$version-1" --package "librewands"
|
||||
cd debian
|
||||
echo "10" > compat
|
||||
cp ../../../Packaging/Debian_Control control
|
||||
echo "" > copyright
|
||||
echo '#!/usr/bin/make -f' > rules
|
||||
echo "%:" >> rules
|
||||
printf "\tdh \$@" >> rules
|
||||
mkdir source/
|
||||
echo "3.0 (quilt)" > source/format
|
||||
fi
|
||||
|
||||
if [ "$1" == "build" ]
|
||||
then
|
||||
cd "../Build/librewands-$version"
|
||||
debuild -us -uc
|
||||
fi
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
Source: librewands
|
||||
Maintainer: Ryan Medeiros <lofenyy@linuxmail.org>
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Standards-Version: 3.9.2
|
||||
Build-Depends: debhelper (>= 9)
|
||||
|
||||
Package: librewands
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: A collaboratively made ncurses RPG featuring magick and monsters.
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
(define-module (gnu packages librewands)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (guix licenses)
|
||||
#:use-module (gnu packages gawk))
|
||||
|
||||
(define-public librewands
|
||||
(package
|
||||
(name "librewands")
|
||||
(version "0.0.2")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://gitea.com/lofenyy/LibreWands/archive/" version
|
||||
".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"11mscpl8fb9bw27ab7xp2wfx5a83xiajf75l0iazxb295mhrxn0l"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments '(#:configure-flags '("--enable-silent-rules")))
|
||||
(inputs (list gawk))
|
||||
(synopsis "An ncurses RPG featuring magick and monsters.")
|
||||
(description "An ncurses RPG featuring magick and monsters.")
|
||||
(home-page "https://gitea.com/lofenyy/LibreWands")
|
||||
(license gpl3+)))
|
||||
|
Loading…
Reference in New Issue