diff options
author | Yen Chi Hsuan | 2014-11-20 16:25:49 +0800 |
---|---|---|
committer | Yen Chi Hsuan | 2014-11-20 16:25:49 +0800 |
commit | 2696f3c48c8efe85685d2613063abd9c7e40549f (patch) | |
tree | 7291cb65c6e77d72af81959c870e24c653fb86ea | |
download | aur-2696f3c48c8efe85685d2613063abd9c7e40549f.tar.gz |
Add mingw-w64-sqlite++
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 51 | ||||
-rw-r--r-- | vsqlite++.patch | 35 |
3 files changed, 108 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..348304ac3ff4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = mingw-w64-vsqlite++ + pkgdesc = SQLite wrapper library for C++ (mingw-w64) + pkgver = 0.3.13 + pkgrel = 3 + url = http://sourceforge.net/projects/sqlitepp/ + arch = any + license = BSD + makedepends = mingw-w64-boost + makedepends = mingw-w64-configure + makedepends = mingw-w64-gcc + depends = mingw-w64-sqlite + depends = mingw-w64-crt + options = !strip + options = staticlibs + options = !buildflags + source = http://downloads.sourceforge.net/sqlitepp/vsqlite++-0.3.13.tar.gz + source = vsqlite++.patch + sha256sums = 67887fe7e27159fc83de271a015c322d40bb760f1a7ac5ae9c1d40291a90d39d + sha256sums = ed8b9d3f849b3fe1169d9e17302e63352f7029aa54f0ea2058fdea1673d7867d + +pkgname = mingw-w64-vsqlite++ + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3b94352b9083 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Christian Hesse <mail@eworm.de> + +_pkgname=vsqlite++ +pkgname=mingw-w64-${_pkgname} +pkgver=0.3.13 +pkgrel=1 +_pkgdesc='SQLite wrapper library for C++' +pkgdesc="${_pkgdesc} (mingw-w64)" +arch=('any') +url='http://sourceforge.net/projects/sqlitepp/' +license=('custom') +depends=('mingw-w64-sqlite' 'mingw-w64-crt') +makedepends=('mingw-w64-boost' 'mingw-w64-configure' 'mingw-w64-gcc') +options+=('!strip' 'staticlibs' '!buildflags') +source=( + "http://downloads.sourceforge.net/sqlitepp/${_pkgname}-${pkgver}.tar.gz" + 'vsqlite++.patch' +) +sha256sums=( + '67887fe7e27159fc83de271a015c322d40bb760f1a7ac5ae9c1d40291a90d39d' + 'ed8b9d3f849b3fe1169d9e17302e63352f7029aa54f0ea2058fdea1673d7867d' +) + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare() { + cd "${srcdir}/${_pkgname}-$pkgver" + patch -p 1 -i ../vsqlite++.patch +} + +build() { + cd "${srcdir}/${_pkgname}-$pkgver/" + autoreconf --install --verbose --force + for _arch in ${_architectures} + do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure + make + popd + done +} + +package() { + for _arch in ${_architectures} + do + cd "${srcdir}/${_pkgname}-$pkgver/build-${_arch}" + make DESTDIR="${pkgdir}" install + install -D -m0644 ../COPYING "${pkgdir}/usr/${_arch}/share/licenses/vsqlite++/COPYING" + done +} + diff --git a/vsqlite++.patch b/vsqlite++.patch new file mode 100644 index 000000000000..7cc065dc3d97 --- /dev/null +++ b/vsqlite++.patch @@ -0,0 +1,35 @@ +diff -ur vsqlite++-0.3.13/configure.ac vsqlite++-0.3.13-mod/configure.ac +--- vsqlite++-0.3.13/configure.ac 2014-04-24 21:06:08.000000000 +0800 ++++ vsqlite++-0.3.13-mod/configure.ac 2014-11-20 12:28:53.806419854 +0800 +@@ -3,7 +3,7 @@ + AM_INIT_AUTOMAKE + AC_CONFIG_MACRO_DIR([m4]) + AC_PROG_CXX +-LT_INIT ++LT_INIT([win32-dll]) + + dnl ------------------------------------------- + dnl test "$prefix" = "NONE" && prefix=/usr/local +diff -ur vsqlite++-0.3.13/Makefile.am vsqlite++-0.3.13-mod/Makefile.am +--- vsqlite++-0.3.13/Makefile.am 2014-02-17 04:32:26.000000000 +0800 ++++ vsqlite++-0.3.13-mod/Makefile.am 2014-11-20 13:37:29.829890745 +0800 +@@ -5,8 +5,8 @@ + + lib_LTLIBRARIES = libvsqlitepp.la + +-libvsqlitepp_la_CXXFLAGS = -I include $(AM_CXXFLAGS) +-libvsqlitepp_la_LDFLAGS = -lsqlite3 -Wl,--as-needed -Wl,-soname -Wl,libvsqlitepp.so.3 -version-info 3:0:0 ++libvsqlitepp_la_CXXFLAGS = -I $(srcdir)/include $(AM_CXXFLAGS) ++libvsqlitepp_la_LDFLAGS = -lsqlite3 -Wl,--as-needed -Wl,-soname -Wl,libvsqlitepp.so.3 -version-info 3:0:0 -no-undefined + libvsqlitepp_la_SOURCES = \ + src/sqlite/command.cpp \ + src/sqlite/connection.cpp \ +@@ -19,7 +19,7 @@ + $(NULL) + + noinst_PROGRAMS=vsqlitepp_example +-vsqlitepp_example_CXXFLAGS=-I include $(AM_CXXFLAGS) ++vsqlitepp_example_CXXFLAGS=-I $(srcdir)/include $(AM_CXXFLAGS) + vsqlitepp_example_LDADD = libvsqlitepp.la + vsqlitepp_example_SOURCES = \ + examples/sqlite_wrapper.cpp \ |