2023-05-23 12:49:57 +02:00

36 lines
1.1 KiB
Bash

# Maintainer: Edgar <Edgar{at}AnotherFoxGuy.com>
pkgname=angelscript
pkgver=2.36.1
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=('d6d213ce72135c89e47e67521f654611ff67673f3decd9db3da4b7bf317a04a3f91c5c6ae36658ec3f2b20498facd069af02a91255a24ec79c96d8c90d6b554e'
'89225460b1f342d4611af27f5982d5d36c41b6948d9c72cb8d6a616b730eb830446a87e68e3a37ac2df41200d7637ec6338f935d8f88f9891d6b1b3fb4f10bb2')
build() {
cd "$srcdir/sdk/angelscript/projects/cmake"
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
}
package() {
cd "$srcdir/sdk/angelscript/projects/cmake"
make PREFIX="/usr" DESTDIR="$pkgdir" install
msg "Installing add-ons..."
cd "$srcdir/sdk"
mkdir -p "$pkgdir/usr/share/$pkgname/"
cp -rf add_on "$pkgdir/usr/share/$pkgname/"
install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
}