wok-next view assaultcube/receipt @ rev 21078

Update png and Xorg in dependencies.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 22 04:52:35 2018 +0200 (2018-12-22)
parents d5aab818505e
children 0f2575775b2d
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="devel@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 libtool clang-dev openal-dev libsdl-image-dev \
15 libsdl-mixer-dev mesa-dev glu-dev zlib-dev curl-dev"
16 # libx11-dev libogg-dev libvorbis-dev
17 SPLIT="$PACKAGE-data"
18 COOKOPTS="skip-log-errors"
20 compile_rules() {
21 export CXX='clang++'
23 cd $src/source/enet
24 autoreconf -vfi
25 ./configure $CONFIGURE_ARGS &&
26 make
28 cd $src/source/src
29 make || return 1
31 # install executables
32 install -Dm755 ac_client $install/usr/bin/ac_client
33 install -Dm755 ac_server $install/usr/bin/ac_server
35 # install shell wrappers
36 install -Dm755 $stuff/assaultcube $install/usr/bin/assaultcube
37 install -Dm755 $stuff/assaultcube-server $install/usr/bin/assaultcube-server
39 # install data
40 mkdir -p $install/usr/share/assaultcube/
41 cp -r config/ packages/ docs/ mods/ $install/usr/share/assaultcube/
42 find $install -type f -exec chmod a-x '{}' \;
44 # remove CR line endings
45 find ./config ./packages ./docs ./mods -type f \
46 \( -name '*.cfg' -o -name '*.txt' \) \
47 | xargs -n1 dos2unix
48 }
50 genpkg_rules() {
51 case $PACKAGE in
52 assaultcube)
53 copy bin/
54 DEPENDS="openal libsdl-image libsdl-mixer mesa glu assaultcube-data"
55 ;;
56 *-data)
57 copy assaultcube/
58 DEPENDS=" "
59 CAT="games|data files"
60 ;;
61 esac
62 }