wok view openspades/receipt @ rev 25502

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