diff --git a/angelscript/LICENSE b/angelscript/LICENSE new file mode 100644 index 0000000..72b443e --- /dev/null +++ b/angelscript/LICENSE @@ -0,0 +1,21 @@ +AngelCode Scripting Library +Copyright (c) 2003-2016 Andreas Jonsson + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any +damages arising from the use of this software. + +Permission is granted to anyone to use this software for any +purpose, including commercial applications, and to alter it and +redistribute it freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you +must not claim that you wrote the original software. If you use +this software in a product, an acknowledgment in the product +documentation would be appreciated but is not required. + +2. Altered source versions must be plainly marked as such, and +must not be misrepresented as being the original software. + +3. This notice may not be removed or altered from any source +distribution. \ No newline at end of file diff --git a/angelscript/PKGBUILD b/angelscript/PKGBUILD new file mode 100644 index 0000000..1ab367b --- /dev/null +++ b/angelscript/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Edgar + +pkgname=angelscript +pkgver=2.32.0 +pkgrel=1 +pkgdesc="An extremely flexible cross-platform scripting library." +arch=('i686' 'x86_64') +url="http://angelcode.com/angelscript/" +license=('custom:ZLIB') +source=("http://angelcode.com/angelscript/sdk/files/${pkgname}_${pkgver}.zip" + LICENSE) +sha512sums=('a88bd8e7e9f7116450ea8185642d7f6bfccf1530bff3630957839031aaed80075ecf27b9c551d4282051a8fb28d0b8814b56abf84a45d6008de2afa4019edf8e' + '89225460b1f342d4611af27f5982d5d36c41b6948d9c72cb8d6a616b730eb830446a87e68e3a37ac2df41200d7637ec6338f935d8f88f9891d6b1b3fb4f10bb2') + +build() { + cd "$srcdir/sdk/angelscript/projects/gnuc" + + make all -j$(nproc) +} + +package() { + cd "$srcdir/sdk/angelscript/projects/gnuc" + + install -d "$pkgdir"/usr/share/{licenses,doc}/$pkgname \ + "$pkgdir"/usr/share/$pkgname \ + "$pkgdir"/usr/share/doc/$pkgname/articles + + make PREFIX="/usr" DESTDIR="$pkgdir" install + + msg "Installing add-ons..." + cd "$srcdir/sdk" + cp -rf add_on "$pkgdir/usr/share/$pkgname/" + + msg "Installing documentation and license..." + cd "$srcdir/sdk/docs" + cp -rf * "$pkgdir/usr/share/doc/$pkgname" + install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname" +} \ No newline at end of file