updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ponscripter-hg / PKGBUILD
blob216b21260c12d9d77157be5229fa971c3feffb3d
1 # Maintainer: Marcin Skory <armitage at gfreedom dot org>
2 pkgname=ponscripter-hg
3 pkgver=371
4 pkgrel=1
5 pkgdesc="NScripter-style novel-game interpreter with an emphasis on supporting games in Western languages (Mercurial version)"
6 arch=('i686' 'x86_64')
7 url="http://unclemion.com/dev/projects/ponscripter"
8 license=('GPL')
9 depends=('gcc-libs' 'sdl_mixer' 'sdl_image' 'bzip2' 'freetype2')
10 makedepends=('mercurial')
11 provides=('ponscripter')
12 conflicts=('ponscripter-svn' 'ponscripter')
14 _hgroot=https://unclemion.com/hg/
15 _hgrepo=ponscripter
17 build() {
18   cd "$srcdir"
19   msg "Connecting to Mercurial server...."
21   if [[ -d "$_hgrepo" ]]; then
22     cd "$_hgrepo"
23     hg pull -u
24     msg "Switching to the latest revision..."
25     hg update tip
26     msg "The local files are updated."
27   else
28     hg clone "$_hgroot" "$_hgrepo"
29     msg "Switching to the latest revision..."
30     hg update tip
31   fi
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"
40   #
41   # BUILD HERE
42   #
43   ./configure --prefix=/usr --no-werror
44   make
47 package() {
48   install -D -m755 "${srcdir}/${_hgrepo}-build/src/ponscr" "${pkgdir}/usr/bin/ponscripter"
49   install -dm755 "${pkgdir}/usr/share/doc/ponscripter"
50   cd "${srcdir}/${_hgrepo}"
51   install -m644 BUGS CHANGES INSTALL README "${pkgdir}/usr/share/doc/ponscripter"
54 # vim:set ts=2 sw=2 et: