From f3badee10dff488c0910c2199e5eeec49c44d780 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 10 Nov 2017 02:10:11 +0400 Subject: The package build script --- build.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..516c10d --- /dev/null +++ b/build.sh @@ -0,0 +1,27 @@ +#!/bin/sh +# Author: Valentin Popov +# Email: info@valentineus.link +# Date: 2017-11-10 +# Usage: /bin/sh build.sh +# Description: Build the package for the GNU/Debian system. + +# Updating the Environment +PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" +MEDNAFEN="mednafen-server-0.5.2" + +# Preparing the system +apt-get --yes update +apt-get --yes install curl xz-utils build-essential pkg-config dh-make libasound2-dev libsdl1.2-dev libsndfile1-dev + +# Preparation of the working catalog +curl --location --remote-name "https://mednafen.github.io/releases/files/$MEDNAFEN.tar.xz" +tar -xpJf "$MEDNAFEN.tar.xz" +mv ./"mednafen-server" ./"$MEDNAFEN" +cd ./"$MEDNAFEN" + +# Build the package +dh_make --yes --single --email "info@valentineus.link" --copyright "gpl3" --file ../"$MEDNAFEN.tar.xz" +dpkg-buildpackage --compression-level=9 --compression=bzip2 + +# End of work +exit 0 \ No newline at end of file -- cgit v1.2.3