wok view openspades/receipt @ rev 25074

Add python-ipaddress
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 13 19:39:39 2022 +0000 (23 months ago)
parents 65c59ca32cb9
children 65ff25c4de90
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 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # patch -p1 -i $stuff/$PACKAGE-$VERSION.patch
32 export CC=gcc-83
33 export CXX=g++-83
35 mkdir build
36 cd build
37 cmake .. \
38 -DCMAKE_INSTALL_PREFIX=/usr \
39 -DCMAKE_BUILD_TYPE=Release \
40 -DOPENSPADES_RESDIR=/usr/share/openspades/Resources \
41 -DOPENSPADES_INSTALL_RESOURCES=share/openspades/Resources \
42 -DOPENSPADES_INSTALL_BINARY=bin &&
43 make -j1 &&
44 make DESTDIR=$install install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $install/* $fs
51 }