🎉 Added angelscript PKGBUILD

This commit is contained in:
Edgar 2021-10-21 12:41:13 +02:00
parent f9947cc521
commit 9aae808291
No known key found for this signature in database
GPG Key ID: 17D930BB616061A5
2 changed files with 59 additions and 0 deletions

21
angelscript/LICENSE Normal file
View File

@ -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.

38
angelscript/PKGBUILD Normal file
View File

@ -0,0 +1,38 @@
# Maintainer: Edgar <Edgar{at}AnotherFoxGuy.com>
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"
}