mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
71 lines
2.2 KiB
Bash
71 lines
2.2 KiB
Bash
pkgname=0ad
|
|
pkgver=0.0.22
|
|
_pkgver=$pkgver-alpha
|
|
pkgrel=1
|
|
pkgdesc="Cross-platform, 3D and historically-based real-time strategy game"
|
|
screenshot=http://www.wildfiregames.com/0ad/images/news_images/dynamic-borders.jpg
|
|
arch=('i686' 'x86_64')
|
|
url="http://play0ad.com/"
|
|
license=('GPL2' 'CCPL') # source licenses.
|
|
depends=('boost-libs' 'curl' 'enet' 'gamin' 'gloox' 'libgl' 'libogg' 'libpng' 'libvorbis'
|
|
'libxcursor' 'libxml2' 'mesa' 'miniupnpc' 'nspr' 'nvidia-texture-tools' 'openal'
|
|
'sdl2' 'zip' 'zlib' 0ad-data=$pkgver)
|
|
makedepends=('boost' 'python2')
|
|
replaces=(0ad-debug) # If someone wants a debug version, they should rebuild 0ad with config=debug.
|
|
categories=('games')
|
|
changelog=ChangeLog
|
|
source=(http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-build.tar.xz)
|
|
md5sums=('b015db10176cdaafb6d62946b27f06ec')
|
|
|
|
prepare() {
|
|
cd "$srcdir/$pkgname-$_pkgver/"
|
|
sed -i "s/env python/env python2/g" libraries/source/cxxtest-4.4/bin/cxxtestgen
|
|
}
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$_pkgver/build/workspaces
|
|
|
|
# Required to build SpiderMonkey.
|
|
unset CPPFLAGS
|
|
|
|
# Required to build SpiederMonkey in a chroot, see:
|
|
# http://ur1.ca/obpvf
|
|
# http://ur1.ca/obpvi
|
|
export SHELL=/bin/bash
|
|
|
|
# Atlas disabled because it requires GTK.
|
|
./update-workspaces.sh \
|
|
--disable-atlas \
|
|
--with-system-nvtt \
|
|
--bindir=/usr/bin \
|
|
--libdir=/usr/lib/0ad \
|
|
--datadir=/usr/share/${pkgname}/data
|
|
|
|
cd gcc
|
|
make
|
|
}
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$pkgname-$_pkgver
|
|
|
|
# Manual installation.
|
|
install -d ${pkgdir}/usr/{bin,lib,share/"${pkgname}"/data}
|
|
install -Dm755 ${srcdir}/${pkgbase}-${_pkgver}/binaries/system/pyrogenesis ${pkgdir}/usr/bin
|
|
install -Dm755 ${srcdir}/${pkgbase}-${_pkgver}/binaries/system/*.so ${pkgdir}/usr/lib
|
|
|
|
# Copy l10n files.
|
|
cp -r binaries/data/l10n/ ${pkgdir}/usr/share/${pkgname}/data/
|
|
|
|
# Execution script.
|
|
install -Dm755 ./build/resources/$pkgname.sh $pkgdir/usr/bin/$pkgname
|
|
|
|
# Desktop Integration.
|
|
install -Dm644 ./build/resources/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
|
|
install -Dm644 ./build/resources/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
|
|
|
|
# Legal.
|
|
install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
|
|
|
|
}
|