2011-05-08 23:01:59 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
|
|
|
|
|
|
|
pkgname=violetland
|
2012-09-21 03:23:15 +08:00
|
|
|
pkgver=0.4.3
|
2013-04-18 16:04:14 +08:00
|
|
|
pkgrel=2
|
2011-05-08 23:01:59 +08:00
|
|
|
pkgdesc="Game where a girl, Violet, struggles with hordes of monsters."
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://code.google.com/p/violetland/"
|
|
|
|
license=('GPL3' 'CCPL:by-sa')
|
2013-04-18 16:04:14 +08:00
|
|
|
depends=('boost' 'intltool' 'sdl_image' 'sdl_mixer' 'sdl_ttf' 'libgl' 'mesa')
|
|
|
|
makedepends=('cmake' 'desktop-file-utils' 'git')
|
2011-05-08 23:01:59 +08:00
|
|
|
conflicts=('violetland-dev' 'violetland-svn')
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2013-04-18 16:04:14 +08:00
|
|
|
|
|
|
|
_gitroot="https://github.com/ooxi/violetland.git"
|
|
|
|
_gitname="$pkgname"
|
2011-05-08 23:01:59 +08:00
|
|
|
|
|
|
|
build() {
|
2013-04-18 16:04:14 +08:00
|
|
|
cd "${srcdir}"
|
|
|
|
|
|
|
|
msg "Connecting to GIT server...."
|
|
|
|
|
|
|
|
if [ -d $_gitname ] ; then
|
|
|
|
cd $_gitname && git pull origin
|
|
|
|
git submodule update
|
|
|
|
msg "The local files are updated."
|
|
|
|
else
|
|
|
|
git clone $_gitroot $_gitname --depth=1
|
|
|
|
cd $_gitname
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
fi
|
|
|
|
|
|
|
|
msg "GIT checkout done or server timeout"
|
|
|
|
msg "Starting make..."
|
|
|
|
|
|
|
|
rm -rf $srcdir/$_gitname-build
|
|
|
|
cp -R $srcdir/$_gitname $srcdir/$_gitname-build
|
|
|
|
cd $srcdir/$_gitname-build
|
2012-09-21 03:23:15 +08:00
|
|
|
|
2011-05-08 23:01:59 +08:00
|
|
|
cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
2013-04-18 16:04:14 +08:00
|
|
|
.
|
2011-05-08 23:01:59 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-04-18 16:04:14 +08:00
|
|
|
cd "${srcdir}/${_gitname}-build"
|
2012-09-21 03:23:15 +08:00
|
|
|
|
|
|
|
# Install icon
|
2013-04-18 16:04:14 +08:00
|
|
|
install -D -m0644 "${srcdir}/${pkgname}-master/icon-light.png" \
|
2012-09-21 03:23:15 +08:00
|
|
|
"${pkgdir}/usr/share/pixmaps/${pkgname}.png"
|
|
|
|
|
|
|
|
# Install desktop file
|
|
|
|
desktop-file-install -m 0644 --dir="${pkgdir}/usr/share/applications" \
|
2013-04-18 16:04:14 +08:00
|
|
|
"${srcdir}/${pkgname}-master/${pkgname}.desktop"
|
2012-09-21 03:23:15 +08:00
|
|
|
|
|
|
|
# Install Readme
|
2013-04-18 16:04:14 +08:00
|
|
|
install -D -m0644 "${srcdir}/${pkgname}-master/CHANGELOG.md" \
|
|
|
|
"${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG.md"
|
2012-09-21 03:23:15 +08:00
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2011-05-08 23:01:59 +08:00
|
|
|
}
|