Commit cc05380f authored by Jakob Kirsch's avatar Jakob Kirsch

Initial commit

parents
export PY=python3.7
export ROOT=$(pwd)
export VER=1.0-1
export ARC=amd64
$PY -m venv venv
venv/bin/$PY -m pip install arcade
rm -fr venv/lib//$PY/site-packages/setuptools*
rm -fr venv/lib//$PY/site-packages/pkg_resources*
rm -fr venv/lib//$PY/site-packages/pip*
rm -fr venv/lib//$PY/site-packages/*.py
git clone https://github.com/jarikomppa/soloud.git
cd soloud/build
git clone https://github.com/bkaradzic/genie.git
cd genie
make
cd ..
./genie/bin/linux/genie --os=linux --cc=gcc gmake
cd gmake
LDFLAGS=-lasound make
cd ../..
cp lib/libsoloud.so $ROOT/venv/lib/$PY/site-packages/arcade/soloud/libsoloud.so
cd ..
rm -fr soloud
sed -i '/Soloud_setPanAbsoluteEx/d' $ROOT/venv/lib/$PY/site-packages/arcade/soloud/soloud.py
sed -i '/set_pan_absolute/d' $ROOT/venv/lib/$PY/site-packages/arcade/soloud/soloud.py
cd $ROOT
mkdir python3-arcade_$VER
mkdir python3-arcade_$VER/usr
mkdir python3-arcade_$VER/usr/lib
mkdir python3-arcade_$VER/usr/lib/python3
cp venv/lib/$PY/site-packages/ python3-arcade_$VER/usr/lib/python3/dist-packages/ -r
mkdir python3-arcade_$VER/DEBIAN
echo Package: python3-arcade > python3-arcade_$VER/DEBIAN/control
echo Version: $VER >> python3-arcade_$VER/DEBIAN/control
echo Section: custom >> python3-arcade_$VER/DEBIAN/control
echo Priority: optional >> python3-arcade_$VER/DEBIAN/control
echo Architecture: $ARC >> python3-arcade_$VER/DEBIAN/control
echo Essential: no >> python3-arcade_$VER/DEBIAN/control
echo Requires: $PY >> python3-arcade_$VER/DEBIAN/control
echo Maintainer: Jakob Kirsch >> python3-arcade_$VER/DEBIAN/control
echo Description: full arcade >> python3-arcade_$VER/DEBIAN/control
dpkg-deb --build python3-arcade_$VER
rm -fr python3-arcade_$VER venv
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment