mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 20:31:40 +01:00
37 lines
843 B
Plaintext
37 lines
843 B
Plaintext
# Maintainer: Natnae
|
|
pkgname=lua-stdlib
|
|
pkgver=26
|
|
pkgrel=0
|
|
pkgdesc="Lua library of modules for common programming tasks"
|
|
url="http://luaforge.net/projects/stdlib/"
|
|
arch="noarch"
|
|
license="MIT/X"
|
|
depends=
|
|
makedepends="lua lua-dev"
|
|
install=
|
|
subpackages="$pkgname-doc"
|
|
source="https://github.com/downloads/rrthomas/lua-stdlib/stdlib-$pkgver.zip"
|
|
|
|
_builddir="$srcdir"/stdlib-$pkgver
|
|
_luashare=/usr/share/lua/5.1
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--datadir="$_luashare" \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make install DESTDIR="$pkgdir" || return 1
|
|
mkdir -p "$pkgdir"/usr/share/doc/$pkgname || return 1
|
|
cd "$_builddir"/src
|
|
cp -r files modules index.html "$pkgdir"/usr/share/doc/$pkgname/
|
|
}
|
|
|
|
md5sums="2f916405400dab91274db4ff50798d01 stdlib-26.zip"
|