-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
27 lines (22 loc) · 865 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# Author: Valentin Popov
# Email: [email protected]
# 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 "[email protected]" --copyright "gpl3" --file ../"$MEDNAFEN.tar.xz"
dpkg-buildpackage
# End of work
exit 0