updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / angelscript / PKGBUILD
blobd008e8348aeca8f3a39ce161462987f6fdb39362
1 # Maintainer: Hilton Medeiros <medeiros.hilton@gmail.com>
3 pkgname=angelscript
4 pkgver=2.22.1
5 pkgrel=1
6 pkgdesc="An extremely flexible cross-platform scripting library."
7 arch=('i686' 'x86_64')
8 url="http://www.angelcode.com/angelscript/"
9 license=('custom:ZLIB')
10 depends=('gcc-libs')
11 source=("http://www.angelcode.com/$pkgname/sdk/files/${pkgname}_${pkgver}.zip"
12         COPYING)
13 md5sums=('bc238a09ad08c1d075660f4a87f2d738'
14          '7c614180024c181e386c9f7f884276e1')
16 build() {
17   cd "$srcdir/sdk/$pkgname/projects/gnuc"
19   sed -i -e "/^LOCAL/s:=.*:= ${pkgdir}/usr:" \
20     -e '/\sCXXFLAGS/s:-g::' \
21     -e '/^install/s/:.*/:/' \
22     makefile
24   make
25   make SHARED=1 VERSION=$pkgver
28 package() {
29   cd "$srcdir/sdk/$pkgname/projects/gnuc"
31   install -d "$pkgdir"/usr/{lib,include} \
32              "$pkgdir"/usr/share/{licenses,doc}/$pkgname \
33              "$pkgdir"/usr/share/$pkgname \
34              "$pkgdir"/usr/share/doc/$pkgname/{articles,manual}
36   make install
37   make install SHARED=1 VERSION=$pkgver
39   chmod 644 "$pkgdir"/usr/include/*
41   msg "Installing add-ons..."
42   cd "$srcdir/sdk"
43   cp -rf add_on "$pkgdir/usr/share/$pkgname/"
45   msg "Installing documentation and license..."
46   cd "$srcdir/sdk/docs"
47   install -m644 articles/* "$pkgdir/usr/share/doc/$pkgname/articles"
48   install -m644 manual/* "$pkgdir/usr/share/doc/$pkgname/manual"
49   install -m644 index.html "$pkgdir/usr/share/doc/$pkgname"
50   install -Dm644 "$srcdir/COPYING" "$pkgdir/usr/share/licenses/$pkgname"