wok-next annotate assaultcube/receipt @ rev 21206
try to build assaultcube again
author | Hans-G?nter Theisgen |
---|---|
date | Mon Dec 02 09:25:03 2019 +0100 (2019-12-02) |
parents | 0f2575775b2d |
children |
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" |
Hans-G?nter@21206 | 7 MAINTAINER="maintainer@slitaz.org" |
pascal@15201 | 8 LICENSE="zlib/libpng" |
al@21020 | 9 WEB_SITE="https://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 |
Hans-G?nter@21206 | 14 BUILD_DEPENDS="automake clang-dev curl-dev glu-dev libtool mesa-dev openal-dev |
Hans-G?nter@21206 | 15 sdl-image-dev sdl-mixer-dev zlib-dev" |
al@21078 | 16 # libx11-dev libogg-dev libvorbis-dev |
al@20969 | 17 SPLIT="$PACKAGE-data" |
al@20969 | 18 COOKOPTS="skip-log-errors" |
al@20969 | 19 |
Hans-G?nter@21206 | 20 compile_rules() |
Hans-G?nter@21206 | 21 { |
al@20969 | 22 export CXX='clang++' |
al@20969 | 23 |
al@20969 | 24 cd $src/source/enet |
al@20969 | 25 autoreconf -vfi |
al@20969 | 26 ./configure $CONFIGURE_ARGS && |
al@20969 | 27 make |
al@20969 | 28 |
slaxemulator@6588 | 29 cd $src/source/src |
al@20969 | 30 make || return 1 |
al@20969 | 31 |
al@20969 | 32 # install executables |
al@20969 | 33 install -Dm755 ac_client $install/usr/bin/ac_client |
al@20969 | 34 install -Dm755 ac_server $install/usr/bin/ac_server |
al@20969 | 35 |
al@20969 | 36 # install shell wrappers |
al@20969 | 37 install -Dm755 $stuff/assaultcube $install/usr/bin/assaultcube |
al@20969 | 38 install -Dm755 $stuff/assaultcube-server $install/usr/bin/assaultcube-server |
al@20969 | 39 |
al@20969 | 40 # install data |
al@20969 | 41 mkdir -p $install/usr/share/assaultcube/ |
al@20969 | 42 cp -r config/ packages/ docs/ mods/ $install/usr/share/assaultcube/ |
al@20969 | 43 find $install -type f -exec chmod a-x '{}' \; |
al@20969 | 44 |
al@20969 | 45 # remove CR line endings |
al@20969 | 46 find ./config ./packages ./docs ./mods -type f \ |
al@20969 | 47 \( -name '*.cfg' -o -name '*.txt' \) \ |
al@20969 | 48 | xargs -n1 dos2unix |
slaxemulator@6588 | 49 } |
slaxemulator@6588 | 50 |
Hans-G?nter@21206 | 51 genpkg_rules() |
Hans-G?nter@21206 | 52 { |
al@20969 | 53 case $PACKAGE in |
al@20969 | 54 assaultcube) |
al@20969 | 55 copy bin/ |
al@21087 | 56 DEPENDS="openal sdl-image sdl-mixer mesa glu assaultcube-data" |
al@20969 | 57 ;; |
al@20969 | 58 *-data) |
al@20969 | 59 copy assaultcube/ |
al@20969 | 60 DEPENDS=" " |
al@20969 | 61 CAT="games|data files" |
al@20969 | 62 ;; |
al@20969 | 63 esac |
slaxemulator@6588 | 64 } |