1 # Maintainer: <ahmad200512@yandex.ru>
3 pkgname=angelscript2.10
7 pkgdesc="An extremely flexible cross-platform scripting library, v.2.10"
9 url="http://www.angelcode.com/angelscript/"
12 provides=('angelscript')
13 conflicts=('angelscript')
14 source=("http://www.angelcode.com/${_realname}/sdk/files/${_realname}_${pkgver}.zip"
16 md5sums=('082dfea2c7e30a1b22200a5d18038b84'
17 'b485a741d5a3c16a76099eacf689a22a')
20 cd $srcdir/sdk/${_realname}/projects/gnuc
22 install -d $pkgdir/usr/lib \
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/: .*/:/' \
33 msg "Building library..."
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..."
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}