SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "openspades"

# SliTaz package receipt.

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="cmake curl-dev file freealut-dev gcc83 glew-dev grep \
    imagemagick libogg-dev libsdl2-dev libsdl2-image-dev mesa-dev \
    opusfile-dev unzip zip"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
#    patch -p1 -i $stuff/$PACKAGE-$VERSION.patch

    export CC=gcc-83
    export CXX=g++-83

    mkdir build
    cd build
    cmake ..                            \
        -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
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)