Receipt for: openspades
source
stuff/openspades-0.0.12.patch
PACKAGE="openspades"
VERSION="0.1.3"
CATEGORY="games"
SHORT_DESC="Compatible client of Ace of Spades 0.75."
MAINTAINER="al.bobylev@gmail.com"
LICENSE="GPL3"
WEB_SITE="http://openspades.yvt.jp/"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/yvt/openspades/archive/v$VERSION.tar.gz"
DEPENDS="gcc83-lib-base glew glibc-base libcurl libglu-mesa libsdl2 \
libsdl2-image libxcb mesa util-linux-uuid xorg-libICE \
xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext zlib"
BUILD_DEPENDS="curl-dev file freealut-dev gcc83 glew-dev grep \
imagemagick libogg-dev libsdl2-dev libsdl2-image-dev mesa-dev \
opusfile-dev unzip zip cmake3"
current_version()
{
wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}
compile_rules()
{
export CC=gcc-83
export CXX=g++-83
mkdir build
cd build
cmake .. \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DOPENSPADES_RESDIR=/usr/share/openspades/Resources \
-DOPENSPADES_INSTALL_RESOURCES=share/openspades/Resources \
-DOPENSPADES_INSTALL_BINARY=bin &&
make -j1 &&
make DESTDIR=$install install
}
genpkg_rules()
{
cp -a $install/* $fs
}