mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 19:36:44 +02:00
41 lines
954 B
Text
41 lines
954 B
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=lutok
|
|
pkgver=0.4
|
|
pkgrel=6
|
|
pkgdesc="lightweight C++ API for Lua"
|
|
url="https://github.com/freebsd/lutok"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
_luaver=5.4
|
|
depends_dev="lua$_luaver-dev"
|
|
makedepends="$depends_dev"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
source="https://github.com/freebsd/lutok/releases/download/lutok-$pkgver/lutok-$pkgver.tar.gz"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
update_config_sub
|
|
}
|
|
|
|
build() {
|
|
LUA_CFLAGS=$(pkg-config --cflags lua$_luaver) \
|
|
LUA_LIBS=$(pkg-config --libs lua$_luaver) \
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make -j1 DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="664f30099bfbb30978e24068a9232a4ff1b5b1839c601bf784f35f6bb1394558067495093a3b0343c94e756d2e4186a32a8227baf5934c15c45905f7c0a5d19c lutok-0.4.tar.gz"
|