mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 19:17:15 +08:00
53 lines
1.5 KiB
Bash
53 lines
1.5 KiB
Bash
#
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
pkgname=widelands
|
|
pkgver=16
|
|
_pkgver=build16
|
|
pkgrel=3
|
|
pkgdesc="A realtime strategy game with emphasis on economy and transport."
|
|
arch=('i686' 'x86_64')
|
|
url="http://widelands.org/"
|
|
license=('GPL')
|
|
depends=('boost-libs' 'ggz-client-libs' 'glew' 'lua' 'python2' 'sdl_gfx' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf')
|
|
makedepends=('boost' 'cmake')
|
|
source=(http://launchpad.net/$pkgname/$_pkgver/$_pkgver/+download/$pkgname-$_pkgver-src.tar.bz2
|
|
$pkgname.desktop
|
|
$pkgname.png)
|
|
md5sums=('3d8c28e145b73c64d8ed1625319d25a2'
|
|
'86950190758e1aeaec8fe742440e8ab5'
|
|
'3dfda7e9ca76ca00dd98d745d0ceb328')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$_pkgver-src
|
|
|
|
mkdir -p build/compile && cd build/compile
|
|
|
|
cmake \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DWL_INSTALL_PREFIX=/usr \
|
|
-DWL_INSTALL_DATADIR=share/$pkgname \
|
|
-DWL_INSTALL_BINDIR=bin \
|
|
../..
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$_pkgver-src/build/compile
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
# Install bin, icon and desktop file
|
|
#install -Dm 755 src/$pkgname $pkgdir/usr/share/$pkgname/$pkgname
|
|
#install -Dm 755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname
|
|
install -Dm644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
|
|
install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
|
|
|
|
# #!/bin/sh
|
|
# cd /usr/share/widelands
|
|
# ./widelands $*
|
|
}
|