Remove .deb package generation.

This commit is contained in:
Paul Chote
2018-04-08 19:53:10 +01:00
committed by abcdefg30
parent b585f46f91
commit 0586dabd7e
10 changed files with 0 additions and 227 deletions

View File

@@ -79,7 +79,6 @@ deploy:
- build/OpenRA-${TRAVIS_TAG}.exe
- build/OpenRA-${TRAVIS_TAG}.dmg
- build/OpenRA-${TRAVIS_TAG}-source.tar.bz2
- build/openra_${DOTVERSION}_all.deb
skip_cleanup: true
on:
all_branches: true

View File

@@ -1,60 +0,0 @@
#!/bin/bash
# OpenRA packaging master script for linux packages
command -v curl >/dev/null 2>&1 || { echo >&2 "Linux packaging requires curl."; exit 1; }
command -v markdown >/dev/null 2>&1 || { echo >&2 "Linux packaging requires markdown."; exit 1; }
if [ $# -ne "2" ]; then
echo "Usage: `basename $0` tag outputdir"
exit 1
fi
# Set the working dir to the location of this script
cd $(dirname $0)
TAG="${1}"
VERSION=`echo ${TAG} | grep -o "[0-9]\\+-\\?[0-9]\\?"`
OUTPUTDIR="${2}"
SRCDIR="$(pwd)/../.."
BUILTDIR="$(pwd)/build"
# Clean up
rm -rf ${BUILTDIR}
echo "Building core files"
pushd ${SRCDIR} > /dev/null
make linux-dependencies
make core SDK="-sdk:4.5"
make version VERSION="${TAG}"
make install-core prefix="/usr" DESTDIR="${BUILTDIR}"
make install-linux-shortcuts prefix="/usr" DESTDIR="${BUILTDIR}"
make install-linux-mime prefix="/usr" DESTDIR="${BUILTDIR}"
make install-linux-appdata prefix="/usr" DESTDIR="${BUILTDIR}"
make install-man-page prefix="/usr" DESTDIR="${BUILTDIR}"
popd > /dev/null
# Documentation
DOCSDIR="${BUILTDIR}/usr/share/doc/openra/"
mkdir -p "${DOCSDIR}"
curl -s -L -O https://raw.githubusercontent.com/wiki/OpenRA/OpenRA/Changelog.md
markdown Changelog.md > "${DOCSDIR}/Changelog.html"
rm Changelog.md
markdown ${SRCDIR}/README.md > "${DOCSDIR}/README.html"
markdown ${SRCDIR}/CONTRIBUTING.md > "${DOCSDIR}/CONTRIBUTING.html"
pushd deb >/dev/null
echo "Building Debian package"
./buildpackage.sh "${TAG}" "${BUILTDIR}" "${OUTPUTDIR}"
if [ $? -ne 0 ]; then
echo "Debian package build failed."
fi
popd >/dev/null
rm -rf "${BUILTDIR}"

View File

@@ -1,18 +0,0 @@
Package: openra
Version: {VERSION}
Architecture: all
Maintainer: Paul Chote <paul@chote.net>
Installed-Size: {SIZE}
Depends: libopenal1, mono-runtime (>= 4.2), libmono-system-core4.0-cil, libmono-system-drawing4.0-cil, libmono-system-data4.0-cil, libmono-system-numerics4.0-cil, libmono-system-runtime-serialization4.0-cil, libmono-system-xml-linq4.0-cil, libmono-i18n4.0-all, libfreetype6, libc6, libasound2, libgl1-mesa-glx, libgl1-mesa-dri, xdg-utils, zenity, libsdl2 | libsdl2-2.0-0, liblua5.1-0
Section: games
Priority: extra
Homepage: http://www.openra.net/
Description: Multiplayer re-envisioning of early RTS games by Westwood Studios
OpenRA is a Libre/Free Real Time Strategy game engine supporting early
Westwood games like Command & Conquer and Command & Conquer: Red Alert.
The engine is designed from the ground up to be extremely moddable and
natively supports user-created maps and mods.
.
Support can be obtained from our IRC channel (#openra on irc.freenode.net),
our forum (http://www.sleipnirstuff.com/forum/viewforum.php?f=80), and our
bug tracker (http://bugs.openra.net).

View File

@@ -1,8 +0,0 @@
#!/bin/sh
set -e
# Register default mods for in-game switching
mkdir -p "{SYSTEMSUPPORTDIR}/ModMetadata"
mono {LIBDIR}/OpenRA.Utility.exe ra --register-mod /usr/games/openra-ra system
mono {LIBDIR}/OpenRA.Utility.exe cnc --register-mod /usr/games/openra-cnc system
mono {LIBDIR}/OpenRA.Utility.exe d2k --register-mod /usr/games/openra-d2k system

View File

@@ -1,6 +0,0 @@
#!/bin/sh
set -e
mono {LIBDIR}/OpenRA.Utility.exe ra --unregister-mod system
mono {LIBDIR}/OpenRA.Utility.exe cnc --unregister-mod system
mono {LIBDIR}/OpenRA.Utility.exe d2k --unregister-mod system

View File

@@ -1,3 +0,0 @@
<configuration>
<dllmap os="linux" dll="lua51.dll" target="liblua5.1.so.0" />
</configuration>

View File

@@ -1,109 +0,0 @@
#!/bin/bash
# OpenRA packaging script for Debian based distributions
command -v fakeroot >/dev/null 2>&1 || { echo >&2 "Debian packaging requires fakeroot."; exit 1; }
command -v dpkg-deb >/dev/null 2>&1 || { echo >&2 "Debian packaging requires dpkg-deb."; exit 1; }
if [ $# -ne "3" ]
then
echo "Usage: `basename $0` version root-dir outputdir"
exit $E_BADARGS
fi
# Set the working dir to the location of this script
cd $(dirname $0)
TAG="${1}"
LINUX_BUILD_ROOT="${2}"
OUTPUTDIR="${3}"
DEB_BUILD_ROOT="$(pwd)/build"
LIBDIR=/usr/lib/openra
DOCDIR=/usr/share/doc/openra
SYSTEMSUPPORTDIR=/var/games/openra
LINTIANORDIR=/usr/share/lintian/overrides
E_BADARGS=85
DATE=`echo ${TAG} | grep -o "[0-9]\\+-\\?[0-9]\\?"`
TYPE=`echo $1 | grep -o "^[a-z]*"`
VERSION="${DATE}.${TYPE}"
# Copy template files into a clean build directory (required)
mkdir "${DEB_BUILD_ROOT}"
cp -R DEBIAN "${DEB_BUILD_ROOT}"
cp -R "${LINUX_BUILD_ROOT}/usr" "${DEB_BUILD_ROOT}"
cp -R Eluant.dll.config "${DEB_BUILD_ROOT}/${LIBDIR}/"
chmod 0644 "${DEB_BUILD_ROOT}/${LIBDIR}/"*.dll
chmod 0644 "${DEB_BUILD_ROOT}/${LIBDIR}/"*/**/*.dll
# Binaries go in /usr/games
mv "${DEB_BUILD_ROOT}/usr/bin/" "${DEB_BUILD_ROOT}/usr/games/"
sed "s|/usr/bin|/usr/games|g" "${DEB_BUILD_ROOT}/usr/games/openra-ra" > temp
mv -f temp "${DEB_BUILD_ROOT}/usr/games/openra-ra"
sed "s|/usr/bin|/usr/games|g" "${DEB_BUILD_ROOT}/usr/games/openra-cnc" > temp
mv -f temp "${DEB_BUILD_ROOT}/usr/games/openra-cnc"
sed "s|/usr/bin|/usr/games|g" "${DEB_BUILD_ROOT}/usr/games/openra-d2k" > temp
mv -f temp "${DEB_BUILD_ROOT}/usr/games/openra-d2k"
chmod 0755 "${DEB_BUILD_ROOT}/usr/games/openra"*
# Compress the man page
gzip -9n "${DEB_BUILD_ROOT}/usr/share/man/man6/openra.6"
# Put the copyright and changelog in /usr/share/doc/openra/
mkdir -p "${DEB_BUILD_ROOT}/${DOCDIR}"
cp copyright "${DEB_BUILD_ROOT}/${DOCDIR}/copyright"
cp "${DEB_BUILD_ROOT}/${LIBDIR}/AUTHORS" "${DEB_BUILD_ROOT}/${DOCDIR}"
gzip -9 "${DEB_BUILD_ROOT}/${DOCDIR}/AUTHORS"
DATE=`date -R`
# Put the lintian overrides in /usr/share/lintian/overrides/
mkdir -p "${DEB_BUILD_ROOT}/${LINTIANORDIR}"
cp openra.lintian-overrides "${DEB_BUILD_ROOT}/${LINTIANORDIR}/openra"
echo -e "openra (${VERSION}) unstable; urgency=low\n" > "${DEB_BUILD_ROOT}/${DOCDIR}/changelog"
echo -e " * New upstream release: $TAG" >> "${DEB_BUILD_ROOT}/${DOCDIR}/changelog"
echo -e "\n -- Paul Chote <paul@chote.net> ${DATE}" >> "${DEB_BUILD_ROOT}/${DOCDIR}/changelog"
gzip -9 "${DEB_BUILD_ROOT}/${DOCDIR}/changelog"
rm "${DEB_BUILD_ROOT}/${LIBDIR}/COPYING"
# Nothing should have group writable permissions
# (These might occur due to difference in umask values.)
chmod -R g-w "${DEB_BUILD_ROOT}"
# Create the control file
if [[ "$OSTYPE" == "darwin"* ]]; then
# BSD du doesn't have an --apparent-size flag, so we must accept a different result
PACKAGE_SIZE=`du -c "${DEB_BUILD_ROOT}/usr" | grep "total" | awk '{print $1}'`
else
PACKAGE_SIZE=`du --apparent-size -c "${DEB_BUILD_ROOT}/usr" | grep "total" | awk '{print $1}'`
fi
sed "s/{VERSION}/${VERSION}/" DEBIAN/control | sed "s/{SIZE}/${PACKAGE_SIZE}/" > "${DEB_BUILD_ROOT}/DEBIAN/control"
sed "s|{LIBDIR}|${LIBDIR}|g" DEBIAN/postinst | sed "s|{SYSTEMSUPPORTDIR}|${SYSTEMSUPPORTDIR}|g" > "${DEB_BUILD_ROOT}/DEBIAN/postinst"
sed "s|{LIBDIR}|${LIBDIR}|g" DEBIAN/prerm | sed "s|{SYSTEMSUPPORTDIR}|${SYSTEMSUPPORTDIR}|g" > "${DEB_BUILD_ROOT}/DEBIAN/prerm"
chmod 0755 "${DEB_BUILD_ROOT}/DEBIAN/postinst" "${DEB_BUILD_ROOT}/DEBIAN/prerm"
# Build it in the temp directory, but place the finished deb in our starting directory
pushd "${DEB_BUILD_ROOT}" >/dev/null
# Calculate md5sums and clean up the ./usr/ part of them
if [[ "$OSTYPE" == "darwin"* ]]; then
find . -type f -not -path "./DEBIAN/*" -print0 | xargs -0 -n1 openssl md5 | awk '{ print $2, substr($1, 7, length($1)-8) }' > DEBIAN/md5sums
else
find . -type f -not -path "./DEBIAN/*" -print0 | xargs -0 -n1 md5sum | sed 's|\./usr/|usr/|' > DEBIAN/md5sums
fi
chmod 0644 DEBIAN/md5sums
# Replace any dashes in the version string with periods
PKGVERSION=`echo ${TAG} | sed "s/-/\\./g"`
# Start building, the file should appear in the output directory
fakeroot dpkg-deb -b . "${OUTPUTDIR}/openra_${PKGVERSION}_all.deb"
# Clean up
popd >/dev/null
rm -rf "${DEB_BUILD_ROOT}"

View File

@@ -1,17 +0,0 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: openra
Source: https://github.com/OpenRA/OpenRA
Files: *
Copyright: 2007-2018 The OpenRA Developers
License: GPL-3.0
Files: DEBIAN/*
Copyright: 2007-2018 The OpenRA Developers
License: GPL-3.0
License: GPL-3.0
OpenRA is free software. It is made available to you under the terms of
the GNU General Public License as published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License
version 3 can be found in the `/usr/share/common-licenses/GPL-3' file.

View File

@@ -1,4 +0,0 @@
# We don't want to have need to add an extra dependency and create symlinks to
# be able to access the FreeSans font.
openra: duplicate-font-file usr/lib/openra/mods/common/FreeSans.ttf also in fonts-freefont-ttf
openra: duplicate-font-file usr/lib/openra/mods/common/FreeSansBold.ttf also in fonts-freefont-ttf

View File

@@ -29,7 +29,6 @@ function build_package() (
set -e
build_package windows
build_package osx
build_package linux
build_package source
echo "Package build done."