desktop/violetland/PKGBUILD

68 lines
1.7 KiB
Bash
Raw Normal View History

#
# 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
pkgrel=2
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')
depends=('boost' 'intltool' 'sdl_image' 'sdl_mixer' 'sdl_ttf' 'libgl' 'mesa')
makedepends=('cmake' 'desktop-file-utils' 'git')
conflicts=('violetland-dev' 'violetland-svn')
2012-03-07 19:00:46 +08:00
categories=('games')
_gitroot="https://github.com/ooxi/violetland.git"
_gitname="$pkgname"
build() {
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
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
.
make
}
package() {
cd "${srcdir}/${_gitname}-build"
2012-09-21 03:23:15 +08:00
# Install icon
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" \
"${srcdir}/${pkgname}-master/${pkgname}.desktop"
2012-09-21 03:23:15 +08:00
# Install Readme
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
}