blob: d112651c0793b1b553ce7c2d6428ac89a5086a3f [file] [log] [blame] [edit]
# Contributor (Fluke): Ricky Wu <rickleaf.wu@gmail.com>
_realname=lsqlite3
pkgbase=mingw-w64-lua-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-lua51-${_realname}")
pkgver=0.9.3
pkgrel=2
pkgdesc="LuaSQLite is a Lua 5 binding to allow users/developers to manipulate SQLite 2 and SQLite 3 databases (through different implementations) from lua (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url="http://lua.sqlite.org"
license=("LGPL")
depends=("${MINGW_PACKAGE_PREFIX}-lua51"
"${MINGW_PACKAGE_PREFIX}-sqlite3")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc")
options=('staticlibs' 'strip')
source=("http://lua.sqlite.org/index.cgi/zip/${_realname}_fsl09w.zip"
"installpath.lua"
"lunit.lua"
"Makefile.mingw")
sha256sums=('9fac8bf1fcc12e3a48be6b8534434e9e84225889eef96184ad22d02c76a66929'
'd9b058b10d1d6e0fc1ac9338193c8b8b25e808e00955ce13ef1c91c6af0c9d3a'
'ae756636ed73147259cb55e13768d88bef5e7fa3373209c886ab46e8ea89b92f'
'0f8e44da73038683dfb21430bec2beda97b070adb7c4b4f84402717e1474193e')
prepare() {
cd "${srcdir}/${_realname}_fsl09w"
cp ../installpath.lua .
cp ../lunit.lua .
cp ../Makefile.mingw .
mkdir -p tmp
}
build() {
#mkdir -p "build-${MINGW_CHOST}"
cd "${srcdir}/${_realname}_fsl09w"
make -f Makefile.mingw
}
package() {
cd "${srcdir}/${_realname}_fsl09w"
install -Dm755 lsqlite3.dll "${pkgdir}${MINGW_PREFIX}/lib/lua/5.1/lsqlite3.dll"
}