diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-07 17:26:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-07 17:26:37 +0000 |
commit | c5e33820f9e0f7c297492c1e8c23b7e75dfd16a1 (patch) | |
tree | 375edb3df66270ef0d28f09482281906f91d7a98 /main/lua-sql-mysql | |
parent | ba40809f89630e9928cd58b683f4f1148930abdf (diff) | |
download | aports-c5e33820f9e0f7c297492c1e8c23b7e75dfd16a1.tar.bz2 aports-c5e33820f9e0f7c297492c1e8c23b7e75dfd16a1.tar.xz |
main/lua-sql-mysql: renamed from luasql-mysql
Diffstat (limited to 'main/lua-sql-mysql')
-rw-r--r-- | main/lua-sql-mysql/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/main/lua-sql-mysql/APKBUILD b/main/lua-sql-mysql/APKBUILD new file mode 100644 index 0000000000..669ad205fd --- /dev/null +++ b/main/lua-sql-mysql/APKBUILD @@ -0,0 +1,32 @@ +# Maintainer: Natanael Copa <natanael.copa@gmail.com> +pkgname=lua-sql-mysql +_name=luasql-mysql +pkgver=2.1.1 +pkgrel=0 +pkgdesc="MySQL driver for LuaSQL (luasql-mysql)" +url="http://www.keplerproject.org/luasql/" +license="MIT" +depends="lua" +makedepends="lua-dev mysql-dev" +install= +subpackages= +source="http://luaforge.net/frs/download.php/2686/luasql-$pkgver.tar.gz" +replaces=luasql-mysql + +build() { + cd "$srcdir"/luasql-$pkgver + + # The config has DRIVER_INCS but it seems like its not respected + # so we just fix the .c file + sed -i -e 's:^\#include "mysql.h":\#include <mysql/mysql.h>:' \ + src/ls_mysql.c || return 1 + + make CFLAGS="$CFLAGS" T=mysql DRIVER_LIBS="-lmysqlclient" || return 1 +} + +package() { + cd "$srcdir"/luasql-$pkgver + install -D src/mysql.so "$pkgdir"/usr/lib/lua/5.1/luasql/mysql.so +} + +md5sums="63bdd57de4b9d1be336ba112d8cb69eb luasql-2.1.1.tar.gz" |