wok-next annotate assaultcube/receipt @ rev 20969
Micro-updates + { new clang + assaultcube (still broken)} + {new python modules from SliTaz Cooking + their depends}
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Sep 14 01:56:52 2018 +0300 (2018-09-14) |
parents | c0521c689857 |
children | d5aab818505e |
rev | line source |
---|---|
al@20969 | 1 # SliTaz package receipt v2. |
slaxemulator@6588 | 2 |
slaxemulator@6588 | 3 PACKAGE="assaultcube" |
al@20969 | 4 VERSION="1.2.0.2" |
slaxemulator@6588 | 5 CATEGORY="games" |
al@20969 | 6 SHORT_DESC="A realistic team oriented multiplayer FPS based on the Cube engine" |
slaxemulator@6588 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15201 | 8 LICENSE="zlib/libpng" |
slaxemulator@6588 | 9 WEB_SITE="http://assault.cubers.net/" |
slaxemulator@6588 | 10 |
al@20969 | 11 TARBALL="AssaultCube_v$VERSION.tar.bz2" |
al@20969 | 12 WGET_URL="https://github.com/assaultcube/AC/releases/download/v$VERSION/$TARBALL" |
pascal@13793 | 13 |
al@20969 | 14 BUILD_DEPENDS="automake libtool clang-dev openal-dev libsdl-image-dev \ |
al@20969 | 15 libsdl-mixer-dev mesa-dev glu-dev zlib-dev curl-dev" |
al@20969 | 16 # xorg-libX11-dev libogg-dev libvorbis-dev |
al@20969 | 17 SPLIT="$PACKAGE-data" |
al@20969 | 18 COOKOPTS="skip-log-errors" |
al@20969 | 19 |
al@20969 | 20 compile_rules() { |
al@20969 | 21 export CXX='clang++' |
al@20969 | 22 |
al@20969 | 23 cd $src/source/enet |
al@20969 | 24 autoreconf -vfi |
al@20969 | 25 ./configure $CONFIGURE_ARGS && |
al@20969 | 26 make |
al@20969 | 27 |
slaxemulator@6588 | 28 cd $src/source/src |
al@20969 | 29 make || return 1 |
al@20969 | 30 |
al@20969 | 31 # install executables |
al@20969 | 32 install -Dm755 ac_client $install/usr/bin/ac_client |
al@20969 | 33 install -Dm755 ac_server $install/usr/bin/ac_server |
al@20969 | 34 |
al@20969 | 35 # install shell wrappers |
al@20969 | 36 install -Dm755 $stuff/assaultcube $install/usr/bin/assaultcube |
al@20969 | 37 install -Dm755 $stuff/assaultcube-server $install/usr/bin/assaultcube-server |
al@20969 | 38 |
al@20969 | 39 # install data |
al@20969 | 40 mkdir -p $install/usr/share/assaultcube/ |
al@20969 | 41 cp -r config/ packages/ docs/ mods/ $install/usr/share/assaultcube/ |
al@20969 | 42 find $install -type f -exec chmod a-x '{}' \; |
al@20969 | 43 |
al@20969 | 44 # remove CR line endings |
al@20969 | 45 find ./config ./packages ./docs ./mods -type f \ |
al@20969 | 46 \( -name '*.cfg' -o -name '*.txt' \) \ |
al@20969 | 47 | xargs -n1 dos2unix |
slaxemulator@6588 | 48 } |
slaxemulator@6588 | 49 |
al@20969 | 50 genpkg_rules() { |
al@20969 | 51 case $PACKAGE in |
al@20969 | 52 assaultcube) |
al@20969 | 53 copy bin/ |
al@20969 | 54 DEPENDS="openal libsdl-image libsdl-mixer mesa glu assaultcube-data" |
al@20969 | 55 ;; |
al@20969 | 56 *-data) |
al@20969 | 57 copy assaultcube/ |
al@20969 | 58 DEPENDS=" " |
al@20969 | 59 CAT="games|data files" |
al@20969 | 60 ;; |
al@20969 | 61 esac |
slaxemulator@6588 | 62 } |