updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / angelscript2.10 / PKGBUILD
blob15f46e34bb82d48e94b4665d11e3ac40d802599e
1 # Maintainer: <ahmad200512@yandex.ru>
3 pkgname=angelscript2.10
4 _realname=angelscript
5 pkgver=2.10.0
6 pkgrel=2
7 pkgdesc="An extremely flexible cross-platform scripting library, v.2.10"
8 arch=('i686' 'x86_64')
9 url="http://www.angelcode.com/angelscript/"
10 license=('ZLIB')
11 depends=('gcc-libs')
12 provides=('angelscript')
13 conflicts=('angelscript')
14 source=("http://www.angelcode.com/${_realname}/sdk/files/${_realname}_${pkgver}.zip"
15         COPYING)
16 md5sums=('082dfea2c7e30a1b22200a5d18038b84'
17          'b485a741d5a3c16a76099eacf689a22a')
19 build() {
20   cd $srcdir/sdk/${_realname}/projects/gnuc
22   install -d $pkgdir/usr/lib \
23              $pkgdir/usr/include \
24              $pkgdir/usr/share/licenses/${_realname} \
25              $pkgdir/usr/share/doc/${_realname}/articles \
26              $pkgdir/usr/share/doc/${_realname}/manual
28   sed -i -e "/^LOCAL/s:=.*:= ${pkgdir}/usr:" \
29          -e '/\sCXXFLAGS/s:=.*:+= -fPIC:' \
30          -e '/^install/s/: .*/:/' \
31          makefile || return 1
33   msg "Building library..."
34   make || return 1
35   make SHARED=1 VERSION=$pkgver || return 1
37   msg "Installing library..."
38   make install || return 1
39   make SHARED=1 VERSION=$pkgver install || return 1
40   chmod 644 $pkgdir/usr/include/*
42   msg "Installing documentation and license..."
43   cd $srcdir/sdk/docs
44   mkdir -p "$pkgdir/usr/share/doc/${_realname}"
45   #install -m644 articles/* $pkgdir/usr/share/doc/${_realname}/articles
46   #install -m644 manual/* $pkgdir/usr/share/doc/${_realname}/manual
47   #install -m644 index.html -t $pkgdir/usr/share/doc/${_realname}
48   cp -R * "$pkgdir/usr/share/doc/${_realname}/"
49   install -Dm644 $srcdir/COPYING -t $pkgdir/usr/share/licenses/${_realname}