unvanquished 0.36.1

parent 171ea5df
# Maintainer: Viech <viech unvanquished net>
pkgname=unvanquished-data
pkgver=0.36.0
pkgrel=1
_gitver="archlinux/${pkgver}-${pkgrel}"
pkgdesc='Game assets for Unvanquished.'
arch=('any')
url='http://www.unvanquished.net'
license=('GPL3')
makedepends=('aria2>=1.18.7-2')
source=("https://github.com/Unvanquished/Unvanquished/raw/${_gitver}/download-pk3-torrent.sh")
# disable package compression since assets are already compressed
PKGEXT='.pkg.tar'
build() {
cd "${srcdir}"
chmod +x download-pk3-torrent.sh
}
package() {
# create installation directory
install -dm755 "${pkgdir}/usr/share/unvanquished/pkg/"
# use package source directory as the cache for the download script
if [ ! -d "${srcdir}/cache" ]; then
mkdir "${srcdir}/cache"
fi
# attempt to copy existing assets from the system, so they aren't redownloaded
if [ -d /var/lib/unvanquished/pkg ]; then
echo "Copying existing assets from the system (old location)..."
cp -r /var/lib/unvanquished/pkg/*.pk3 "${pkgdir}/usr/share/unvanquished/pkg/" || true
fi
if [ -d /usr/share/unvanquished/pkg ]; then
echo "Copying existing assets from the system..."
cp -r /usr/share/unvanquished/pkg/*.pk3 "${pkgdir}/usr/share/unvanquished/pkg/" || true
fi
# make the download script aware of copied assets, so it will remove unneeded ones
ls -c1 "${pkgdir}/usr/share/unvanquished/pkg/" > "${srcdir}/cache/last-assets.txt"
# remove old aria2 progress files in case the torrent itself was updated
rm -f "${srcdir}/cache/"*".aria2"
# download new or modified assets
./download-pk3-torrent.sh "${pkgdir}/usr/share/unvanquished/pkg/" "${srcdir}/cache" "${pkgver}"
}
md5sums=('bb2d205411ab0b05e755abe06e8d38b3')
/chakra/games/_repo/local/unvanquished-data-0.36.0-1-any.pkg.tar
\ No newline at end of file
2013-12-03 Viech
* 0.22.1-1 :
Updated to hotfix release Alpha 22.1.
Removed hotfix for a past mismatch between cmake and freetype.
2013-12-02 Viech
* 0.22.0-3 :
Hotfix a mismatch between cmake and freetype.
2013-12-02 Viech
* 0.22.0-2 :
Added new dependency opusfile (satisfies further dependency opus).
2013-12-01 Viech
* 0.22.0-1 :
Updated to the new Alpha 22 milestone.
2013-11-03 Viech
* 0.21.0-1 :
Updated to the new Alpha 21 milestone.
Rewrote package.
/usr/(lib|share) and /var/lib are is used instead of /opt, /etc and /var/lib are used instead of /srv.
makepkg's git capability is used instead of manually cloning the repository.
"pacman --force" will be necessary for an upgrade to this version.
init support has been removed.
2013-10-06 Viech
* 0.20.0-1 :
Updated to the new Alpha 20 milestone.
Cleaned up PKGBUILD.
Some unneeded files are not included in the installation anymore.
Dependency 'sdl' changed to 'sdl2'.
2013-07-08 Viech
* 0.17.0-1 :
Updated to the new Alpha 17 milestone.
README.txt has been renamed to README.md, update package() to reflect this.
2013-06-03 Viech
* 0.16.0-1 :
Updated to the new Alpha 16 milestone.
2013-05-06 Viech
* 0.15.0-1 :
Updated to the new Alpha 15 milestone.
2013-04-08 Viech
* 0.14.0-1 :
Updated to the new Alpha 14 milestone.
Moved starters to /opt/unvanquished/, symlinked them in /usr/bin/.
2013-02-04 Viech
* 0.12.0-1 :
Updated to the new Alpha 12 milestone.
Added systemd service file.
Added conf.d file for setting the server mode.
2012-12-07 Viech
* 0.11.0-1 :
Updated to the new Alpha 11 milestone.
2012-12-03 Viech
* 0.10.0-1 :
Updated to the new Alpha 10 milestone.
2012-11-05 Viech
* 0.9.0-1 :
Updated to the new Alpha 9 milestone.
Linking binarys based on architecture isn't necessary anymore.
2012-10-08 Viech
* 0.8.0-1 :
Updated to the new Alpha 8 milestone.
2012-09-02 Viech
* 0.7.0-1 :
Updated to the new Alpha 7 milestone.
Removed world read permissions from server config files, made them group-writeable.
2012-08-02 Viech
* 0.6.0-1 :
Updated to the new Alpha 6 milestone.
Temporary *.a files aren't included in the installation anymore.
Support for unv:// URI's added.
2012-07-24 Viech
* 0.5.1-4 :
Corrected post_update() to post_upgrade().
2012-07-24 Viech
* 0.5.1-3 :
Moved the installation/update of media packets to the post_(install|update)() functions for non-redundant updates.
2012-07-24 Viech
* 0.5.1-2 :
Added ChangeLog.
Added backup line for /srv/unvanquished/main/*.cfg.
pre_remove() now deletes /srv/unvanquished/.Unvanquished symlink as pacman doesn't uninstall it correctly.
Added /var/cache/unvanquished/update-paks/ to store the cache of the packet updater.
2012-07-24 Viech
* 0.5.1-1 :
Initial release.
# Maintainer: Viech <viech unvanquished net>
# Contributor: Gereon Schomber
# Contributor: Martin F. Schumann <mfs@mfs.name>
# Contributor: Martin F. Schumann
pkgname=unvanquished
pkgver=0.33.1
pkgrel=2
pkgdesc='A team-based fps/rts hybrid game which pits aliens against humans. Monthly release that can be played on official servers.'
arch=('x86_64')
pkgver=0.36.0
pkgrel=1
_gitver="archlinux/${pkgver}-${pkgrel}"
_gitdir="${pkgname/u/U}-${_gitver/\//-}"
_depver="2"
if test "$CARCH" == "x86_64"; then
_depbasename=linux64-${_depver}
else
_depbasename=linux32-${_depver}
fi
_depname="${_depbasename}.tar.bz2"
pkgdesc='A team-based, fast-paced, fps/rts hybrid game which pits aliens against humans. Monthly alpha release.'
arch=('x86_64' 'i686')
url='http://www.unvanquished.net'
license=('GPL3')
makedepends=('cmake')
depends=('curl' 'freetype2' 'glew' 'gmp'
'libjpeg-turbo' 'ncurses' 'libogg' 'libpng'
'sdl2' 'libvorbis' 'zlib' 'libwebp>=0.2.0'
'libtheora' 'nettle' 'speex' 'xvidcore'
'openal' 'xdg-utils' 'desktop-file-utils' 'shared-mime-info'
'hicolor-icon-theme' 'geoip' 'opusfile')
depends=("unvanquished-data>=${pkgver}"
'zlib' 'gmp' 'nettle' 'geoip' 'curl' 'sdl2' 'glew' 'libpng'
'libjpeg-turbo' 'libwebp>=0.2.0' 'freetype2' 'openal' 'libogg'
'libvorbis' 'speex' 'libtheora' 'opusfile' 'ncurses' 'xdg-utils'
'desktop-file-utils' 'shared-mime-info' 'hicolor-icon-theme')
provides=('unvanquished')
conflicts=('unvanquished-maps' 'unvanquished-git')
options=('emptydirs')
backup=('etc/unvanquished/main/server.cfg' 'etc/unvanquished/main/maprotation.cfg')
changelog='ChangeLog'
conflicts=('unvanquished-git')
options=('emptydirs' '!strip')
backup=('etc/conf.d/unvanquished.conf' 'etc/unvanquished/server.cfg' 'etc/unvanquished/maprotation.cfg')
install='unvanquished.install'
source=("unvanquished::git+https://github.com/Unvanquished/Unvanquished.git#tag=v${pkgver}"
'ChangeLog' 'unvanquished.install' 'unvanquished.sh' 'unvanquished-tty.sh'
'unvanquished-update-paks.sh' 'unvanquished.service' 'unvanquished.conf' 'unvanquished.desktop')
md5sums=('SKIP'
'ce9371c1cd22e58ddf744f64b96583b6'
'a5246cf3bed53798ddc4d95c6b8c1b37'
'ac9c54f828edbbf236156431991f6c82'
'7a10dca92e352e6f47d99a0434681f4e'
'2e82941e47422fdb3cee4ccfca346458'
'1842789de67de55b8027c51cad22f778'
'ce04c7e8423b2da0ea0d8df8be4c8ea4'
'ac69d49b3c665d274d0ab58870220522')
source=("https://github.com/Unvanquished/Unvanquished/archive/${_gitver}.tar.gz"
'unvanquished.install' "https://dl.unvanquished.net/deps/${_depname}")
build() {
cd $srcdir/unvanquished
cd "${srcdir}/${_gitdir}"
cmake -D GAME_QVM=OFF -D BUILD_TTY_CLIENT=ON .
cp -r "${srcdir}/${_depbasename}" external_deps/
cmake -D BUILD_GAME_QVM=OFF -D BUILD_GAME_NACL=OFF -D BUILD_GAME_NACL_NATIVE_DLL=OFF .
make
}
package() {
# create installation directories
cd $pkgdir
cd "${pkgdir}"
install -d etc/conf.d \
etc/unvanquished/main \
install -dm755 etc/conf.d \
etc/unvanquished \
usr/bin \
usr/lib/systemd/system \
usr/lib/unvanquished/main \
usr/lib/unvanquished \
usr/share/applications \
usr/share/icons/hicolor/128x128/apps \
usr/share/licenses/unvanquished \
var/cache/unvanquished/update-paks \
var/lib/unvanquished/main \
var/lib/unvanquished-server/main
usr/share/unvanquished/pkg \
var/lib/unvanquished-server/config \
var/lib/unvanquished-server/game
# install content
cd $srcdir/unvanquished
cd "${srcdir}/${_gitdir}"
install -m 755 daemon* "${pkgdir}/usr/lib/unvanquished/"
install -m 755 *.so "${pkgdir}/usr/lib/unvanquished/"
......@@ -70,19 +73,31 @@ package() {
install -m 644 debian/unvanquished.png "${pkgdir}/usr/share/icons/hicolor/128x128/apps/"
install -m 644 COPYING.txt "${pkgdir}/usr/share/licenses/unvanquished/"
# install starters
cd $srcdir
# install starters and dedicated server config
cd "${srcdir}/${_gitdir}/archlinux"
install -m 755 unvanquished.sh "${pkgdir}/usr/bin/unvanquished"
install -m 755 unvanquished-tty.sh "${pkgdir}/usr/bin/unvanquished-tty"
install -m 644 unvanquished.conf "${pkgdir}/etc/conf.d/"
install -m 644 unvanquished.service "${pkgdir}/usr/lib/systemd/system/"
install -m 644 unvanquished.desktop "${pkgdir}/usr/share/applications/"
install -m 644 configs/maprotation.cfg "${pkgdir}/etc/unvanquished/"
install -m 644 configs/server.cfg "${pkgdir}/etc/unvanquished/"
install -m 644 unvanquished.conf $pkgdir/etc/conf.d/
install -m 755 unvanquished.sh $pkgdir/usr/bin/unvanquished
install -m 755 unvanquished-tty.sh $pkgdir/usr/bin/unvanquished-tty
install -m 755 unvanquished-update-paks.sh $pkgdir/usr/bin/unvanquished-update-paks
install -m 644 unvanquished.service $pkgdir/usr/lib/systemd/system/
install -m 644 unvanquished.desktop $pkgdir/usr/share/applications/
# setup server home directory
cd $pkgdir/var/lib/unvanquished-server/main
cd "${pkgdir}/var/lib/unvanquished-server/config"
ln -s ../../../../etc/unvanquished/server.cfg .
cd "${pkgdir}/var/lib/unvanquished-server/game"
ln -s ../../../../etc/unvanquished/main configuration.pk3dir
ln -s ../../../../etc/unvanquished/maprotation.cfg .
}
md5sums=('c08bf7764c94cc4d3227f8bbcc3b6d56'
'a5246cf3bed53798ddc4d95c6b8c1b37')
if test "$CARCH" == "x86_64"; then
md5sums+=('e5a7ee4c6175342b4545cea1c4c669b9')
else
md5sums+=('df59cf8c320b34b7e85b5f1a8e74665c')
fi
#!/bin/sh
# launcher script for unvanquished tty client
exec /usr/lib/unvanquished/daemon-tty +set fs_libpath /usr/lib/unvanquished +set fs_basepath /var/lib/unvanquished $@
#!/bin/sh
if [ ! $EUID -eq 0 ]; then
echo "This script updates the Unvanquished main installation and thus must be run as root."
exit
fi
# Make sure unvanquished has read access
umask 033
exec /usr/lib/unvanquished/download-pk3.sh /var/lib/unvanquished/main /var/cache/unvanquished/update-paks
# This file configures the environment for the unvanquished server. It isn't used by the client.
#
# Server files can be found here:
# /etc/unvanquished/$FS_GAME - static configuration
# $FS_HOMEPATH/$FS_GAME - runtime data and logs
# Server mode
# 0 - local server
# 1 - LAN server
# 2 - public server
DEDICATED=1
# Mod to run
FS_GAME=main
# Initial configuration file
EXEC=server.cfg
# Search pathes
FS_LIBPATH=/usr/lib/unvanquished
FS_BASEPATH=/var/lib/unvanquished
FS_HOMEPATH=/var/lib/unvanquished-server
[Desktop Entry]
Version=1.0
Name=Unvanquished
Comment=First-person shooter game - aliens vs humans
Icon=unvanquished
Terminal=false
Type=Application
Exec=/usr/bin/unvanquished %U
Categories=Game;ActionGame;StrategyGame;
MimeType=x-scheme-handler/unv
[Unit]
Description=Unvanquished Dedicated Server
After=network.target
[Service]
EnvironmentFile=/etc/conf.d/unvanquished.conf
User=unvanquished
Group=unvanquished
ExecStart=/usr/lib/unvanquished/daemonded +nocurses +set fs_libpath $FS_LIBPATH +set fs_basepath $FS_BASEPATH +set fs_homepath $FS_HOMEPATH +set fs_game $FS_GAME +set dedicated $DEDICATED +exec $EXEC
[Install]
WantedBy=multi-user.target
#!/bin/sh
# launcher script for unvanquished client
# handles unv:// URI's as first parameter securely
if echo "$1" | grep -q '^unv://'; then
uri=`echo "$1" | grep -o '^unv://[^[:space:]+;]*'`
if [ -p ~/.Unvanquished/main/pipe ]; then
echo "connect $uri" > ~/.Unvanquished/main/pipe
else
$0 +connect $uri
fi
else
exec /usr/lib/unvanquished/daemon +set fs_libpath /usr/lib/unvanquished +set fs_basepath /var/lib/unvanquished $@
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment