Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.5 KiB

# NOTE: This program includes external libraries in their source code: pnglite, wavpack and zlib. Due to how this program is built, it's hard to link with the system ones instead.
name=teeworlds
version=0.6.4
8 years ago
version_bam=0.4.0
8 years ago
update_url='http://downloads.teeworlds.com/'
dlextract "https://downloads.teeworlds.com/$name-$version-src.tar.gz" \
'9733800c12462ac4d5a5a4f6ea750af0'
8 years ago
( name=bam version="$version_bam"
dlextract "http://github.com/downloads/matricks/$name/$name-$version.tar.bz2" \
'f8b62ad553c3615a725a034df4fb4257'
)
extrafile "$name.desktop"
header_end
8 years ago
( cd "bam-$version_bam"
sh -v make_unix.sh
)
cd "$name-$version-src"
convert other/icons/Teeworlds.ico "$name.png"
# Allow for custom CFLAGS
sed -i -e "/CONF_RELEASE/arelease_settings.cc.flags:Add('$CFLAGS')\nrelease_settings.link.flags:Add('$LDFLAGS')" bam.lua
# Fix data path
sed -i -e "s/\/usr\/share\/$name\/data/$(safe_sed "$dir_sysroot/$dir_prefix/$dir_datadir/$name")/" src/engine/shared/storage.cpp
8 years ago
"../bam-$version_bam/bam" $BAMFLAGS game_release
mkdir -p "$dir_install/$dir_prefix/$dir_datadir/$name"
cp -a data/* "$dir_install/$dir_prefix/$dir_datadir/$name/"
install -Dm755 "$name" "$dir_install/$dir_prefix/$dir_bindir/$name"
install -Dm755 "${name}_srv" "$dir_install/$dir_prefix/$dir_bindir/${name}_srv"
install -Dm644 "$name-0.png" "$dir_install/$dir_prefix/$dir_datadir/pixmaps/$name.png"
install -Dm644 "../$name.desktop" "$dir_install/$dir_prefix/$dir_datadir/applications/$name.desktop"
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: