From 1c2b1db7f85231b0e338de6eacc990b753170bb4 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Thu, 22 Feb 2018 23:11:09 +0000 Subject: [PATCH] Added build rules for Debian. --- Makefile | 9 +++++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 22 ++++++++++++++++++++++ debian/copyright | 24 ++++++++++++++++++++++++ debian/dirs | 1 + debian/rules | 3 +++ 7 files changed, 65 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100755 debian/rules diff --git a/Makefile b/Makefile index 4e94cd5..2ba21a3 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,17 @@ PANDOC_OPTS = \ LANGS := $(shell ls po/*/mwcc.po|cut -d/ -f2) +DESTDIR = + +docdir = /usr/share/doc/madewithcc + +install = install + all: pdf epub +install: + $(install) *.pdf *.epub $(DESTDIR)/$(docdir) + distclean: clean rm -f $(SOURCE).md clean: diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3da51d4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +madewithcc (0.0.0) UNRELEASED; urgency=low + + * Initial release (Closes: #). + + -- Petter Reinholdtsen Wed, 23 Jan 2013 12:25:31 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..2074dfd --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: madewithcc +Section: misc +Priority: optional +Maintainer: Gunnar Wolf +Build-Depends: debhelper (>= 10) +Build-Depends-Indep: + , pandoc + , dblatex + , texlive-lang-german + , texlive-lang-polish + , texlive-lang-spanish + , texlive-latex-extra + , dbtoepub +Standards-Version: 4.0.0 +Vcs-Browser: gitlab.com/gunnarwolf/madewithcc-es +Vcs-Git: gitlab.com/gunnarwolf/madewithcc-es + +Package: madewithcc +Architecture: all +Depends: ${misc:Depends} +Description: The book Made with Creative Commons + Available in several translations. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..047e1c1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,24 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: madewithcc +Upstream-Contact: Petter Reinholdtsen + +Files: * +Copyright: 2017, Petter Reinholdtsen +License: GPL-2+ + +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package 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 this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..0f02857 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +/usr/share/doc/madewithcc diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cbe925d --- /dev/null +++ b/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ -- 2.47.2