mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
53 lines
1.1 KiB
Bash
53 lines
1.1 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=mercator-git
|
||
|
_pkgname=mercator
|
||
|
pkgver=20110526
|
||
|
pkgrel=1
|
||
|
pkgdesc="WorldForge procedural terrain library."
|
||
|
arch=('i686' 'x86_64')
|
||
|
url="http://worldforge.org/dev/eng/libraries/mercator"
|
||
|
license=('GPL')
|
||
|
depends=('wfmath')
|
||
|
provides=('mercator')
|
||
|
conflicts=('mercator')
|
||
|
|
||
|
_gitroot=git://github.com/worldforge/$_pkgname.git
|
||
|
_gitname=$_pkgname
|
||
|
|
||
|
build() {
|
||
|
cd $srcdir
|
||
|
msg "Connecting to GIT server...."
|
||
|
|
||
|
if [ -d $_gitname ] ; then
|
||
|
cd $_gitname && git pull origin
|
||
|
msg "The local files are updated."
|
||
|
else
|
||
|
git clone $_gitroot $_gitname
|
||
|
fi
|
||
|
|
||
|
msg "GIT checkout done or server timeout"
|
||
|
msg "Starting make..."
|
||
|
|
||
|
rm -rf $srcdir/$_gitname-build
|
||
|
git clone $srcdir/$_gitname $srcdir/$_gitname-build
|
||
|
cd $srcdir/$_gitname-build
|
||
|
|
||
|
./autogen.sh
|
||
|
./configure \
|
||
|
--prefix=/usr
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package () {
|
||
|
cd $srcdir/$_gitname-build
|
||
|
|
||
|
make DESTDIR=${pkgdir} install
|
||
|
}
|