wok-next diff assaultcube/receipt @ rev 20975

Close the chain: python and python3 both have upgradeable setuptools and pip
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Sep 23 04:37:56 2018 +0300 (2018-09-23)
parents c0521c689857
children d5aab818505e
line diff
     1.1 --- a/assaultcube/receipt	Fri Mar 16 00:27:34 2018 +0200
     1.2 +++ b/assaultcube/receipt	Sun Sep 23 04:37:56 2018 +0300
     1.3 @@ -1,41 +1,62 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="assaultcube"
     1.8 -VERSION="1.1.0.4"
     1.9 +VERSION="1.2.0.2"
    1.10  CATEGORY="games"
    1.11 -SHORT_DESC="A realistic team oriented multiplayer FPS based on the cube engine."
    1.12 +SHORT_DESC="A realistic team oriented multiplayer FPS based on the Cube engine"
    1.13  MAINTAINER="slaxemulator@gmail.com"
    1.14  LICENSE="zlib/libpng"
    1.15 -SOURCE="AssaultCube"
    1.16 -TARBALL="${SOURCE}_v${VERSION}_source.tar.bz2"
    1.17 -SOURCE="AssaultCube-Source"
    1.18  WEB_SITE="http://assault.cubers.net/"
    1.19 -WGET_URL="$SF_MIRROR/actiongame/$TARBALL"
    1.20  
    1.21 -DEPENDS="openal libsdl-image libsdl-mixer mesa glu assaultcube-data"
    1.22 -BUILD_DEPENDS="openal-dev libsdl-image-dev libsdl-mixer-dev mesa-dev \
    1.23 -glu-dev zlib-dev"
    1.24 +TARBALL="AssaultCube_v$VERSION.tar.bz2"
    1.25 +WGET_URL="https://github.com/assaultcube/AC/releases/download/v$VERSION/$TARBALL"
    1.26  
    1.27 -# Rules to configure and make the package.
    1.28 -compile_rules()
    1.29 -{	
    1.30 +BUILD_DEPENDS="automake libtool clang-dev openal-dev libsdl-image-dev \
    1.31 +libsdl-mixer-dev mesa-dev glu-dev zlib-dev curl-dev"
    1.32 +# xorg-libX11-dev libogg-dev libvorbis-dev
    1.33 +SPLIT="$PACKAGE-data"
    1.34 +COOKOPTS="skip-log-errors"
    1.35 +
    1.36 +compile_rules() {
    1.37 +	export CXX='clang++'
    1.38 +
    1.39 +	cd $src/source/enet
    1.40 +	autoreconf -vfi
    1.41 +	./configure $CONFIGURE_ARGS &&
    1.42 +	make
    1.43 +
    1.44  	cd $src/source/src
    1.45 -	sed -i 's/lvorbisfile/& -lX11/' Makefile
    1.46 -	make
    1.47 -	mkdir -p $DESTDIR/usr/bin
    1.48 -	cp -a ac_client $DESTDIR/usr/bin
    1.49 -	cp -a ac_server $DESTDIR/usr/bin
    1.50 -	
    1.51 +	make || return 1
    1.52 +
    1.53 +	# install executables
    1.54 +	install -Dm755 ac_client $install/usr/bin/ac_client
    1.55 +	install -Dm755 ac_server $install/usr/bin/ac_server
    1.56 +
    1.57 +	# install shell wrappers
    1.58 +	install -Dm755 $stuff/assaultcube        $install/usr/bin/assaultcube
    1.59 +	install -Dm755 $stuff/assaultcube-server $install/usr/bin/assaultcube-server
    1.60 +
    1.61 +	# install data
    1.62 +	mkdir -p $install/usr/share/assaultcube/
    1.63 +	cp -r config/ packages/ docs/ mods/ $install/usr/share/assaultcube/
    1.64 +	find $install -type f -exec chmod a-x '{}' \;
    1.65 +
    1.66 +	# remove CR line endings
    1.67 +	find ./config ./packages ./docs ./mods -type f \
    1.68 +	\( -name '*.cfg' -o -name '*.txt' \) \
    1.69 +	| xargs -n1 dos2unix
    1.70  }
    1.71  
    1.72 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.73 -genpkg_rules()
    1.74 -{
    1.75 -	mkdir -p $fs/usr/bin
    1.76 -	cp -a $install/usr/bin/ac_client $fs/usr/bin
    1.77 -	cp -a $install/usr/bin/ac_server $fs/usr/bin
    1.78 -	cp -a $stuff/assaultcube $fs/usr/bin
    1.79 -	cp -a $stuff/assaultcube-server $fs/usr/bin
    1.80 -	chmod +x $fs/usr/bin/assaultcube
    1.81 -	chmod +x $fs/usr/bin/assaultcube-server
    1.82 +genpkg_rules() {
    1.83 +	case $PACKAGE in
    1.84 +		assaultcube)
    1.85 +			copy bin/
    1.86 +			DEPENDS="openal libsdl-image libsdl-mixer mesa glu assaultcube-data"
    1.87 +			;;
    1.88 +		*-data)
    1.89 +			copy assaultcube/
    1.90 +			DEPENDS=" "
    1.91 +			CAT="games|data files"
    1.92 +			;;
    1.93 +	esac
    1.94  }