mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
#
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=0ad
|
|
pkgver=alpha_3
|
|
_pkgver=r08832-alpha
|
|
pkgrel=4
|
|
pkgdesc="Cross-platform, 3D and historically-based real-time strategy game."
|
|
arch=('i686' 'x86_64')
|
|
url="http://wildfiregames.com/0ad"
|
|
license=('GPL2' 'CCPL')
|
|
depends=('binutils' 'boost' 'crypto++' 'devil' 'enet' 'fam' 'libogg' 'libpng' 'libvorbis' 'libxml2' 'mesa' 'nasm' 'openal' 'python2' 'sdl' 'zip' 'zlib')
|
|
makedepends=('cmake')
|
|
changelog=ChangeLog
|
|
source=("http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-build.tar.xz"
|
|
"http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-data.tar.xz"
|
|
"$pkgname.sh"
|
|
"$pkgname-nogtk.patch")
|
|
md5sums=('b9df52751596633d9aab4cc3b253cb82'
|
|
'38abc29fc714946ed17ac86ac67fb614'
|
|
'27c6ee0a240c3ea481d08aa7e8e5158b'
|
|
'7bb8119a4d611cdffa05177ea2603151')
|
|
|
|
build(){
|
|
cd $srcdir/$pkgname-$_pkgver/build/workspaces
|
|
patch -uN update-workspaces.sh $srcdir/$pkgname-nogtk.patch
|
|
./update-workspaces.sh
|
|
|
|
cd $srcdir/$pkgname-$_pkgver/build/workspaces/gcc
|
|
|
|
CONFIG=Debug make
|
|
}
|
|
|
|
package(){
|
|
install -d $pkgdir/usr/share/$pkgname
|
|
cp -r $srcdir/$pkgname-$_pkgver/binaries/* $pkgdir/usr/share/$pkgname
|
|
|
|
install -D -m755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname
|
|
}
|