Violetland 0.4.3 rebuilt from new sources, with boost added to the list of dependencies.

parent ea3f174a
...@@ -5,44 +5,63 @@ ...@@ -5,44 +5,63 @@
pkgname=violetland pkgname=violetland
pkgver=0.4.3 pkgver=0.4.3
pkgrel=1 pkgrel=2
pkgdesc="Game where a girl, Violet, struggles with hordes of monsters." pkgdesc="Game where a girl, Violet, struggles with hordes of monsters."
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://code.google.com/p/violetland/" url="http://code.google.com/p/violetland/"
license=('GPL3' 'CCPL:by-sa') license=('GPL3' 'CCPL:by-sa')
depends=('sdl_image' 'sdl_mixer' 'sdl_ttf' 'libgl' 'mesa') depends=('boost' 'intltool' 'sdl_image' 'sdl_mixer' 'sdl_ttf' 'libgl' 'mesa')
makedepends=('cmake' 'desktop-file-utils') makedepends=('cmake' 'desktop-file-utils' 'git')
conflicts=('violetland-dev' 'violetland-svn') conflicts=('violetland-dev' 'violetland-svn')
categories=('games') categories=('games')
source=("http://violetland.googlecode.com/files/${pkgname}-v${pkgver}-src.zip")
sha256sums=('790565a752fa10152f2c6f55676c3fa5ffbc45678822ac7d082d815b1798767e') _gitroot="https://github.com/ooxi/violetland.git"
_gitname="$pkgname"
build() { build() {
cd "${srcdir}/${pkgname}-v${pkgver}" 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
rm -rf build
mkdir build && cd build
cmake \ cmake \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
.. .
make make
} }
package() { package() {
cd "${srcdir}/${pkgname}-v${pkgver}/build" cd "${srcdir}/${_gitname}-build"
# Install icon # Install icon
install -D -m0644 "${srcdir}/${pkgname}-v${pkgver}/icon-light.png" \ install -D -m0644 "${srcdir}/${pkgname}-master/icon-light.png" \
"${pkgdir}/usr/share/pixmaps/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
# Install desktop file # Install desktop file
desktop-file-install -m 0644 --dir="${pkgdir}/usr/share/applications" \ desktop-file-install -m 0644 --dir="${pkgdir}/usr/share/applications" \
"${srcdir}/${pkgname}-v${pkgver}/${pkgname}.desktop" "${srcdir}/${pkgname}-master/${pkgname}.desktop"
# Install Readme # Install Readme
install -D -m0644 "${srcdir}/${pkgname}-v${pkgver}/CHANGELOG" \ install -D -m0644 "${srcdir}/${pkgname}-master/CHANGELOG.md" \
"${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG" "${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG.md"
make DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment