aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-11-10 01:10:11 +0300
committerValentin Popov <info@valentineus.link>2017-11-10 01:10:11 +0300
commitf3badee10dff488c0910c2199e5eeec49c44d780 (patch)
tree5bea91d5e62c38b5b71f59548ce76c1242f1b9a0
downloadmednafen-server-f3badee10dff488c0910c2199e5eeec49c44d780.tar.xz
mednafen-server-f3badee10dff488c0910c2199e5eeec49c44d780.zip
The package build script
-rw-r--r--build.sh27
1 files changed, 27 insertions, 0 deletions
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