PKGBUILDs/community/neko/PKGBUILD

49 lines
1.4 KiB
Bash
Raw Normal View History

2016-05-21 15:56:21 +00:00
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Daichi Shinozaki <dsdseg@gmail.com>
# Contributor: Dwight Schauer <dschauer@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
# Contributor: Michael 'manveru' Fellinger <m.fellinger@gmail.com>
# Contributor: Caleb McCombs <erdrick016+aur@gmail.com>
# Contributor: Christian Hesse <arch@eworm.de>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove unsupported gcc flag on !aarch64
pkgname=neko
2018-01-11 13:45:47 +00:00
pkgver=2.2.0
2018-08-19 04:06:36 +00:00
pkgrel=3
2017-10-30 18:11:24 +00:00
pkgdesc='High-level and dynamically typed programming language'
url='http://nekovm.org/' # no https
2016-05-21 15:56:21 +00:00
license=('LGPL')
2018-01-11 13:45:47 +00:00
arch=('x86_64')
2017-10-30 18:11:24 +00:00
depends=('gc' 'gtk2' 'libmariadbclient' 'mbedtls' 'sqlite')
2018-01-11 13:45:47 +00:00
makedepends=('apache' 'apr' 'cmake' 'git' 'mbedtls' 'ninja')
2017-10-30 18:11:24 +00:00
optdepends=('apache: for extending Apache with mod_neko')
2016-05-21 15:56:21 +00:00
options=('!strip')
2017-10-30 18:11:24 +00:00
source=("git+https://github.com/HaxeFoundation/neko#tag=v${pkgver//./-}")
2016-05-21 15:56:21 +00:00
sha256sums=('SKIP')
prepare() {
2018-01-11 13:45:47 +00:00
sed -i '/xlocale.h/d' "$pkgname/libs/std/sys.c"
2016-05-21 15:56:21 +00:00
if [[ $CARCH != "aarch64" ]]; then sed -i '/mincoming-stack-boundary/d' $pkgname/CMakeLists.txt; fi
}
build() {
mkdir -p build
cd build
2017-10-30 18:11:24 +00:00
cmake ../$pkgname \
2016-05-21 15:56:21 +00:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-GNinja
ninja
}
package() {
DESTDIR="$pkgdir" ninja -C build install
}
# getver: nekovm.org/download
2017-10-30 18:11:24 +00:00
# vim: ts=2 sw=2 et: