wok annotate openspades/receipt @ rev 25696

created recipe for dool
author Hans-G?nter Theisgen
date Sat May 11 17:17:55 2024 +0100 (7 weeks ago)
parents 65ff25c4de90
children
rev   line source
al@19256 1 # SliTaz package receipt.
al@19256 2
al@19256 3 PACKAGE="openspades"
Hans-G?nter@21640 4 VERSION="0.1.3"
al@19256 5 CATEGORY="games"
Hans-G?nter@21640 6 SHORT_DESC="Compatible client of Ace of Spades 0.75."
al@19256 7 MAINTAINER="al.bobylev@gmail.com"
al@19256 8 LICENSE="GPL3"
al@19256 9 WEB_SITE="http://openspades.yvt.jp/"
Hans-G?nter@21640 10
al@19256 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@19256 12 WGET_URL="https://github.com/yvt/openspades/archive/v$VERSION.tar.gz"
al@19256 13
Hans-G?nter@21640 14 DEPENDS="gcc83-lib-base glew glibc-base libcurl libglu-mesa libsdl2 \
Hans-G?nter@21640 15 libsdl2-image libxcb mesa util-linux-uuid xorg-libICE \
Hans-G?nter@21640 16 xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext zlib"
Hans-G?nter@21641 17 BUILD_DEPENDS="cmake curl-dev file freealut-dev gcc83 glew-dev grep \
Hans-G?nter@21640 18 imagemagick libogg-dev libsdl2-dev libsdl2-image-dev mesa-dev \
Hans-G?nter@21640 19 opusfile-dev unzip zip"
al@19256 20
pascal@25465 21 # What is the latest version available today?
pascal@24055 22 current_version()
pascal@24055 23 {
pascal@24055 24 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25600 25 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 26 }
pascal@24055 27
al@19256 28 # Rules to configure and make the package.
al@19256 29 compile_rules()
al@19256 30 {
Hans-G?nter@21640 31 # patch -p1 -i $stuff/$PACKAGE-$VERSION.patch
al@19256 32
Hans-G?nter@21640 33 export CC=gcc-83
Hans-G?nter@21640 34 export CXX=g++-83
Hans-G?nter@21640 35
Hans-G?nter@21640 36 mkdir build
Hans-G?nter@21640 37 cd build
Hans-G?nter@21640 38 cmake .. \
Hans-G?nter@21640 39 -DCMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@21640 40 -DCMAKE_BUILD_TYPE=Release \
Hans-G?nter@21640 41 -DOPENSPADES_RESDIR=/usr/share/openspades/Resources \
al@19256 42 -DOPENSPADES_INSTALL_RESOURCES=share/openspades/Resources \
Hans-G?nter@21640 43 -DOPENSPADES_INSTALL_BINARY=bin &&
al@19256 44 make -j1 &&
al@19256 45 make DESTDIR=$install install
al@19256 46 }
al@19256 47
al@19256 48 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19256 49 genpkg_rules()
al@19256 50 {
al@19256 51 cp -a $install/* $fs
al@19256 52 }