summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae64d24b22179517b0677516a078ace1df378e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Anton Larionov <diffident dot cat at gmail dot com>

pkgname=ponscripter
pkgver=20111009
pkgrel=3
pkgdesc="NScripter-style novel-game interpreter with an emphasis on supporting games in Western languages"
arch=('i686' 'x86_64')
url="http://unclemion.com/onscripter/"
license=('GPL')
depends=('sdl_mixer' 'sdl_image' 'freetype2' 'gcc-libs')
# Dependency 'smpeg' 'bzip2' already satisfied
source=(http://unclemion.com/onscripter/pub/ponscr/cigales8/$pkgname-$pkgver-src.tar.bz2)
md5sums=('52927f2a57abe430d86ff4ac05ab7960')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}-src"
  sed -i "36i\#include <unistd.h>" ./src/AnimationInfo.h
  ./configure --prefix=/usr --no-werror
  make
}

package() {
  install -D -m755 "${srcdir}/${pkgname}-${pkgver}-src/src/ponscr" "${pkgdir}/usr/bin/${pkgname}"

  install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"
  cd "${srcdir}/${pkgname}-${pkgver}-src"
  install -m644 BUGS CHANGES INSTALL MANUAL README TODO "${pkgdir}/usr/share/doc/${pkgname}"
}

# vim:set ts=2 sw=2 et: