1 # Maintainer: Hilton Medeiros <medeiros.hilton@gmail.com>
6 pkgdesc="An extremely flexible cross-platform scripting library."
8 url="http://www.angelcode.com/angelscript/"
9 license=('custom:ZLIB')
11 source=("http://www.angelcode.com/$pkgname/sdk/files/${pkgname}_${pkgver}.zip"
13 md5sums=('bc238a09ad08c1d075660f4a87f2d738'
14 '7c614180024c181e386c9f7f884276e1')
17 cd "$srcdir/sdk/$pkgname/projects/gnuc"
19 sed -i -e "/^LOCAL/s:=.*:= ${pkgdir}/usr:" \
20 -e '/\sCXXFLAGS/s:-g::' \
21 -e '/^install/s/:.*/:/' \
25 make SHARED=1 VERSION=$pkgver
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}
37 make install SHARED=1 VERSION=$pkgver
39 chmod 644 "$pkgdir"/usr/include/*
41 msg "Installing add-ons..."
43 cp -rf add_on "$pkgdir/usr/share/$pkgname/"
45 msg "Installing documentation and license..."
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"