wok-next view assaultcube/receipt @ rev 21726

updated firefox-official (77.0 -> 81.0)
author Hans-G?nter Theisgen
date Sun Sep 27 14:34:31 2020 +0100 (2020-09-27)
parents 0f2575775b2d
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="assaultcube"
4 VERSION="1.2.0.2"
5 CATEGORY="games"
6 SHORT_DESC="A realistic team oriented multiplayer FPS based on the Cube engine"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="zlib/libpng"
9 WEB_SITE="https://assault.cubers.net/"
11 TARBALL="AssaultCube_v$VERSION.tar.bz2"
12 WGET_URL="https://github.com/assaultcube/AC/releases/download/v$VERSION/$TARBALL"
14 BUILD_DEPENDS="automake clang-dev curl-dev glu-dev libtool mesa-dev openal-dev
15 sdl-image-dev sdl-mixer-dev zlib-dev"
16 # libx11-dev libogg-dev libvorbis-dev
17 SPLIT="$PACKAGE-data"
18 COOKOPTS="skip-log-errors"
20 compile_rules()
21 {
22 export CXX='clang++'
24 cd $src/source/enet
25 autoreconf -vfi
26 ./configure $CONFIGURE_ARGS &&
27 make
29 cd $src/source/src
30 make || return 1
32 # install executables
33 install -Dm755 ac_client $install/usr/bin/ac_client
34 install -Dm755 ac_server $install/usr/bin/ac_server
36 # install shell wrappers
37 install -Dm755 $stuff/assaultcube $install/usr/bin/assaultcube
38 install -Dm755 $stuff/assaultcube-server $install/usr/bin/assaultcube-server
40 # install data
41 mkdir -p $install/usr/share/assaultcube/
42 cp -r config/ packages/ docs/ mods/ $install/usr/share/assaultcube/
43 find $install -type f -exec chmod a-x '{}' \;
45 # remove CR line endings
46 find ./config ./packages ./docs ./mods -type f \
47 \( -name '*.cfg' -o -name '*.txt' \) \
48 | xargs -n1 dos2unix
49 }
51 genpkg_rules()
52 {
53 case $PACKAGE in
54 assaultcube)
55 copy bin/
56 DEPENDS="openal sdl-image sdl-mixer mesa glu assaultcube-data"
57 ;;
58 *-data)
59 copy assaultcube/
60 DEPENDS=" "
61 CAT="games|data files"
62 ;;
63 esac
64 }