wok view openspades/receipt @ rev 25654
Up ntfs-3g (2022.10.3) again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 06 14:23:55 2024 +0000 (9 months ago) |
parents | 65ff25c4de90 |
children |
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 '/tag\//!d;s|.*tag/v*||;s|".*||;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 }