### this file is sourced not run
PKGVER=5.0.0_beta2
PKGBUILD=1
PKGARCH=x86_64

# source: step
TARBALL=premake-$PKGVER-src.zip
MD5SUM=23b436c9b740f04e57831c76b18b76bf
SRC_URL=https://github.com/premake/premake-core/releases/download/v${PKGVER/_/-}/${TARBALL/_beta/-beta}
BUNDLE=

SLACKREQ=''
SLACKDESC="premake: premake $PKGVER (build tool)
premake:
premake: Premake generates project files for Visual Studio, GNU Make, Xcode,
premake: Code::Blocks, and more across Windows, Mac OS X, and Linux. Use the full
premake: featured Lua scripting engine to make build configuration tasks a breeze.
premake:
premake: License: BSD-3-Clause License
premake: https://premake.github.io/
premake:
premake:
premake:
"

### default pkg_download
### prepare
pkg_prepare() {
	if pkg_check $SRC_DIR $TARBALL $MD5SUM; then
		echo extracting $TARBALL ...
		unzip -qq $SRC_DIR/$TARBALL -d tmp
	else
		return 1
	fi
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/premake-* &&
	# DO NOT STRIP!
	( cd build/gmake2.unix && make config=release ) &&
	install -t /usr/bin -m755 bin/release/premake5 &&
	pkg_build_slackdesc
}

# vim: ft=sh
