wok annotate openspades/receipt @ rev 24908
updated mjpegtools and mjpegtools-dev (2.1.0 -> 2.2.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 15:21:07 2022 +0100 (2022-04-09) |
parents | 65c59ca32cb9 |
children | 65ff25c4de90 |
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@24055 | 21 current_version() |
pascal@24055 | 22 { |
pascal@24055 | 23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 25 } |
pascal@24055 | 26 |
al@19256 | 27 # Rules to configure and make the package. |
al@19256 | 28 compile_rules() |
al@19256 | 29 { |
Hans-G?nter@21640 | 30 # patch -p1 -i $stuff/$PACKAGE-$VERSION.patch |
al@19256 | 31 |
Hans-G?nter@21640 | 32 export CC=gcc-83 |
Hans-G?nter@21640 | 33 export CXX=g++-83 |
Hans-G?nter@21640 | 34 |
Hans-G?nter@21640 | 35 mkdir build |
Hans-G?nter@21640 | 36 cd build |
Hans-G?nter@21640 | 37 cmake .. \ |
Hans-G?nter@21640 | 38 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@21640 | 39 -DCMAKE_BUILD_TYPE=Release \ |
Hans-G?nter@21640 | 40 -DOPENSPADES_RESDIR=/usr/share/openspades/Resources \ |
al@19256 | 41 -DOPENSPADES_INSTALL_RESOURCES=share/openspades/Resources \ |
Hans-G?nter@21640 | 42 -DOPENSPADES_INSTALL_BINARY=bin && |
al@19256 | 43 make -j1 && |
al@19256 | 44 make DESTDIR=$install install |
al@19256 | 45 } |
al@19256 | 46 |
al@19256 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19256 | 48 genpkg_rules() |
al@19256 | 49 { |
al@19256 | 50 cp -a $install/* $fs |
al@19256 | 51 } |