X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mr1.cde.us.jw.org (mx1.cde.us.jw.org [208.74.141.254]) by mail.alpinelinux.org (Postfix) with ESMTP id 53577DC01B6 for ; Thu, 9 Jan 2014 18:50:33 +0000 (UTC) Received: from mr1.cde.us.jw.org (cde-mx.cde.wtbts.net [127.0.0.1]) by mr1.cde.us.jw.org (Postfix) with ESMTP id B7FF21860A36 for ; Thu, 9 Jan 2014 18:50:32 +0000 (UTC) Received: from mh1.cde.wtbts.net (mh1.cde.wtbts.net [10.252.253.30]) by mr1.cde.us.jw.org (Postfix) with ESMTP id 9A2241860A11 for ; Thu, 9 Jan 2014 18:50:32 +0000 (UTC) Received: from [10.252.252.22] (unknown [10.252.252.22]) by mh1.cde.wtbts.net (Postfix) with ESMTPSA id 461DC1485E2D for ; Thu, 9 Jan 2014 18:50:32 +0000 (UTC) Message-ID: <52CEEF7B.5050609@cde.wtbts.net> Date: Thu, 09 Jan 2014 13:50:35 -0500 From: Robert Boisvert Reply-To: rdboisvert@gmail.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] New Package Content-Type: multipart/mixed; boundary="------------040903000607040401010007" X-Virus-Scanned: Yes This is a multi-part message in MIME format. --------------040903000607040401010007 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------040903000607040401010007 Content-Type: text/plain; charset=windows-1252; name="lua-sql-odbc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lua-sql-odbc.patch" >From 86d98b8d96941325324df7bf9663fd72920102ac Mon Sep 17 00:00:00 2001 From: Robert Boisvert Date: Thu, 9 Jan 2014 13:34:50 -0500 Subject: [PATCH] New package. --- main/lua-sql-odbc/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++ main/lua-sql-odbc/config.patch | 37 +++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 main/lua-sql-odbc/APKBUILD create mode 100644 main/lua-sql-odbc/config.patch diff --git a/main/lua-sql-odbc/APKBUILD b/main/lua-sql-odbc/APKBUILD new file mode 100644 index 0000000..ce1b9d8 --- /dev/null +++ b/main/lua-sql-odbc/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Robert Boisvert +# Maintainer: Robert Boisvert +pkgname=lua-sql-odbc +pkgver=2.1.1 +lpkgver=2_1_1 +pkgrel=0 +pkgdesc="ODBC driver for LuaSQL" +url="http://www.keplerproject.org/luasql/" +arch="all" +license="MIT" +depends="lua" +makedepends="lua-dev unixodbc-dev" +install= +subpackages= +source="https://github.com/keplerproject/luasql/archive/v$lpkgver.tar.gz + config.patch" + +build() { + cd "$srcdir/luasql-$lpkgver" + make || return 1 +} + +prepare() { + cd "$srcdir/luasql-$lpkgver" + for i in $source; do + case $i in + *.patch) + msg "Applying $i" + patch -p1 -i "$srcdir"/$i || return 1 + ;; + esac + done +} + +package() { + cd "$srcdir/luasql-$lpkgver" + install -D src/odbc.so "$pkgdir"/usr/lib/lua/5.1/luasql/odbc.so +} +md5sums="aa3a5c8503287e8c6b1845c3b796a3b0 v2_1_1.tar.gz +ebb6b3b612e607503598ce61d107e4de config.patch" +sha256sums="98a0b970424aded98a2afe086b4727e133d5fe95dba8e32ea9de18849b00e10f v2_1_1.tar.gz +0c402d858d804fed986dc4fd2f0400012ae66ca14496521c1bda67106293292d config.patch" +sha512sums="377b707ed291867177b5fc2dec2404ad000d004cff0443d9b4128b78c6e45d3c5492875fd6f1ecf037db253631d691c310a6a2220bd0042a0322335fc58d0f4b v2_1_1.tar.gz +58dd76b7bca68cd0f8b541e524ebdab7036b4ac6e2bbc1eae0e69cae9ee9fed09ff7d3d839fd1b7e9eee21e22f6d0e4f9d04acf088295f96e15171968d51cee6 config.patch" diff --git a/main/lua-sql-odbc/config.patch b/main/lua-sql-odbc/config.patch new file mode 100644 index 0000000..e5152f1 --- /dev/null +++ b/main/lua-sql-odbc/config.patch @@ -0,0 +1,37 @@ +--- a/config ++++ b/config +@@ -1,15 +1,15 @@ + # Driver (leave uncommented ONLY the line with the name of the driver) + #T= mysql + #T= oci8 +-#T= odbc ++T= odbc + #T= postgres + #T= sqlite +-T=sqlite3 ++#T=sqlite3 + + # Installation directories + + # Default prefix +-PREFIX = /usr/local ++PREFIX = /usr + + # System's libraries directory (where binary libraries are installed) + LUA_LIBDIR= $(PREFIX)/lib/lua/5.1 +@@ -45,11 +45,11 @@ + #DRIVER_LIBS= -lsqlite + #DRIVER_INCS= + ######## SQLite3 +-DRIVER_LIBS= -L/opt/local/lib -lsqlite3 +-DRIVER_INCS= -I/opt/local/include ++#DRIVER_LIBS= -L/opt/local/lib -lsqlite3 ++#DRIVER_INCS= -I/opt/local/include + ######## ODBC +-#DRIVER_LIBS= -L/usr/local/lib -lodbc +-#DRIVER_INCS= -DUNIXODBC -I/usr/local/include ++DRIVER_LIBS= -L/usr/local/lib -lodbc ++DRIVER_INCS= -DUNIXODBC -I/usr/local/include + + WARN= -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic + INCS= -I$(LUA_INC) -- 1.8.4.msysgit.0 --------------040903000607040401010007-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---