1 # Maintainer: Marcin Skory <armitage at gfreedom dot org>
2 pkgname=onscripter-en-hg
5 pkgdesc="English version of the open source interpreter for the visual novel game scripting engine NScripter (Mercurial version)"
7 url="http://unclemion.com/dev/projects/onscripter-en/news"
9 depends=('gcc-libs' 'sdl_mixer' 'sdl_image' 'sdl_ttf' 'bzip2' 'smpeg' 'freetype2')
10 makedepends=('mercurial')
11 provides=('onscripter-en')
12 conflicts=('onscripter-en' 'onscripter-en-svn')
14 _hgroot=https://unclemion.com/hg/
19 msg "Connecting to Mercurial server...."
21 if [[ -d "$_hgrepo" ]]; then
24 msg "Switching to the latest revision..."
26 msg "The local files are updated."
28 hg clone "$_hgroot" "$_hgrepo"
29 msg "Switching to the latest revision..."
33 msg "Mercurial checkout done or server timeout"
34 msg "Starting build..."
36 rm -rf "$srcdir/$_hgrepo-build"
37 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
38 cd "$srcdir/$_hgrepo-build"
43 ./configure --prefix=/usr --no-werror
44 # Quick and dirty fix for Makefile.
45 # If there are any problems during linking commenting it out might help.
46 sed -i 's/.dll//g' Makefile
51 install -D -m755 "${srcdir}/${_hgrepo}-build/onscripter-en" "${pkgdir}/usr/bin/onscripter-en"
52 install -dm755 "${pkgdir}/usr/share/doc/onscripter-en"
53 cd "${srcdir}/${_hgrepo}"
54 install -m644 BUGS CHANGES INSTALL README "${pkgdir}/usr/share/doc/onscripter-en"
57 # vim:set ts=2 sw=2 et: