diff --git a/Packaging/debian/changelog b/Packaging/debian/changelog new file mode 100644 index 000000000..5f7958f68 --- /dev/null +++ b/Packaging/debian/changelog @@ -0,0 +1,5 @@ +devilutionx (0.4.0) UNRELEASED; urgency=medium + + * Non-maintainer upload. + + -- Vítězslav Dvořák Fri, 28 Jun 2019 22:55:11 +0200 diff --git a/Packaging/debian/compat b/Packaging/debian/compat new file mode 100644 index 000000000..b4de39476 --- /dev/null +++ b/Packaging/debian/compat @@ -0,0 +1 @@ +11 diff --git a/Packaging/debian/control b/Packaging/debian/control new file mode 100644 index 000000000..743f10368 --- /dev/null +++ b/Packaging/debian/control @@ -0,0 +1,31 @@ +Source: devilutionx +Section: contrib/games +Priority: optional +Maintainer: Debian Games Team +Build-Depends: + debhelper (>= 9), + cmake, g++, libsdl2-mixer-dev, libsdl2-ttf-dev, libsodium-dev +Standards-Version: 4.3.0 +Homepage: https://github.com/diasurgical/devilutionX +Vcs-Git: git://git@github.com:diasurgical/devilutionX.git +Vcs-Browser: https://github.com/diasurgical/devilutionX.git + +Package: devilutionx +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + devilutionx-data | diablo-data | game-data-packager (>= 40), +Description: Diablo build for modern operating systems + Diablo by Blizzard Entertainment is undoubtedly one of + the best games of the 1990s + +Package: diablo-data +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + devilutionx | diablo, +Description: Diablo game data + Copy diabdat.mpq from your CD, or GoG install folder + diff --git a/Packaging/debian/copyright b/Packaging/debian/copyright new file mode 100644 index 000000000..ea02640b9 --- /dev/null +++ b/Packaging/debian/copyright @@ -0,0 +1,31 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: devilutionx +Source: https://github.com/diasurgical/devilutionX + +Files: * +Copyright: 2019 Devilutionx Authors +License: Unlicense +This is free and unencumbered software released into the public domain. +. +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. +. +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. +. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. +. +For more information, please refer to diff --git a/Packaging/debian/devilution.docs b/Packaging/debian/devilution.docs new file mode 100644 index 000000000..b43bf86b5 --- /dev/null +++ b/Packaging/debian/devilution.docs @@ -0,0 +1 @@ +README.md diff --git a/Packaging/debian/devilutionx.install b/Packaging/debian/devilutionx.install new file mode 100644 index 000000000..b161a3b50 --- /dev/null +++ b/Packaging/debian/devilutionx.install @@ -0,0 +1,3 @@ +Packaging/fedora/devilutionx.desktop usr/share/applications/ +obj-x86_64-linux-gnu/devilutionx usr/share/games/diablo +Diablo.ico usr/share/pixmaps diff --git a/Packaging/debian/devilutionx.links b/Packaging/debian/devilutionx.links new file mode 100644 index 000000000..4bcf812e1 --- /dev/null +++ b/Packaging/debian/devilutionx.links @@ -0,0 +1,3 @@ +/usr/share/games/diablo/devilutionx /usr/games/devilutionx + + diff --git a/Packaging/debian/diablo-data.postinst b/Packaging/debian/diablo-data.postinst new file mode 100644 index 000000000..44d01f843 --- /dev/null +++ b/Packaging/debian/diablo-data.postinst @@ -0,0 +1,44 @@ +#!/bin/sh +# postinst script for diablo-data +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +# Source debconf library. +. /usr/share/debconf/confmodule + + +case "$1" in + configure) + + test -f "/usr/share/games/diablo/diabdat.mpq" && chgrp games /usr/share/games/diablo/diabdat.mpq || true + test -f "/usr/share/games/diablo/diabdat.mpq" && chmod g+wr /usr/share/games/diablo/diabdat.mpq || true + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +exit 0 diff --git a/Packaging/debian/rules b/Packaging/debian/rules new file mode 100755 index 000000000..c63ad8452 --- /dev/null +++ b/Packaging/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 +export COMPILE_FLAGS="-O0" + +#export DH_VERBOSE = 1 +export DEB_BUILD_MAINT_OPTIONS = hardening=-all +export DEB_CFLAGS_MAINT_APPEND = -Wno-error +export DEB_LDFLAGS_MAINT_APPEND = -Wno-error + + +%: + dh $@ --buildsystem=cmake + +#override_dh_auto_clean: +# dh_auto_clean +#override_dh_auto_configure: +# dh_auto_configure -O--buildsystem=cmake -- -DDESTDIR=/usr/games -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var + +override_dh_auto_install: + mkdir -p debian/devilutionx/usr/share/pixmaps/ + mkdir -p debian/diablo-data/usr/share/games/diablo/ + mkdir -p debian/diablo-data/usr/share/fonts/truetype + test -f "../diabdat.mpq" && cp ../diabdat.mpq debian/diablo-data/usr/share/games/diablo/ || true + test -f "../CharisSILB.ttf" && cp ../CharisSILB.ttf debian/diablo-data/usr/share/fonts/truetype || true + cp -f Diablo.ico debian/devilutionx/usr/share/pixmaps/devilutionx.ico + dh_auto_install diff --git a/Packaging/debian/source/format b/Packaging/debian/source/format new file mode 100644 index 000000000..89ae9db8f --- /dev/null +++ b/Packaging/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/Packaging/debian/source/lintian-overrides b/Packaging/debian/source/lintian-overrides new file mode 100644 index 000000000..9352ee6f1 --- /dev/null +++ b/Packaging/debian/source/lintian-overrides @@ -0,0 +1,2 @@ +# no automatic test is possible +devilutionx source: testsuite-autopkgtest-missing diff --git a/Packaging/debian/watch b/Packaging/debian/watch new file mode 100644 index 000000000..36ea7cafb --- /dev/null +++ b/Packaging/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts="uversionmangle=s/(\d)[\-_]?(rc\d+|pre-rc\d+|pre\d+a?)$/$1~$2/;s/[\-\.](source|Source|src|orig|unix)$//;s/-(bin|osx)$/~$1/;s/^v(\d)/$1/;" \ +https://github.com/diasurgical/devilutionX/releases .*/([\d.]+).tar.gz