Skip to content

Instantly share code, notes, and snippets.

@smith
Created February 15, 2017 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smith/7f9d5038e49aac7834e26be105d716ff to your computer and use it in GitHub Desktop.
Save smith/7f9d5038e49aac7834e26be105d716ff to your computer and use it in GitHub Desktop.
Lua 5.1 plan
pkg_origin=core
pkg_name=lua
pkg_version=5.1.5
pkg_description="A powerful, efficient, lightweight, embeddable scripting language"
pkg_upstream_url="https://www.lua.org/"
pkg_license=("MIT")
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_source="https://www.lua.org/ftp/lua-${pkg_version}.tar.gz"
pkg_shasum=2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333
pkg_deps=(core/glibc core/readline core/ncurses)
pkg_build_deps=(core/gcc core/make)
pkg_bin_dirs=(bin)
pkg_include_dirs=(include)
pkg_lib_dirs=(lib)
do_build() {
make linux INSTALL_TOP="$pkg_prefix" MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS"
}
do_check() {
make test
}
do_install() {
make install INSTALL_TOP="$pkg_prefix"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment