summaryrefslogtreecommitdiff
path: root/community/mysql++/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-19 23:13:08 +0000
committerroot <root@rshg047.dnsready.net>2011-07-19 23:13:08 +0000
commit94e3eb45cd3402cbc5efd70ae725e8d48ed696af (patch)
tree5f43e51e770fce190ea2732d7784460e4a34b351 /community/mysql++/PKGBUILD
parent040215f1ca1d14472525c2562bc33e84f9728d4a (diff)
Tue Jul 19 23:13:07 UTC 2011
Diffstat (limited to 'community/mysql++/PKGBUILD')
-rw-r--r--community/mysql++/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/mysql++/PKGBUILD b/community/mysql++/PKGBUILD
new file mode 100644
index 000000000..2b7a4ac14
--- /dev/null
+++ b/community/mysql++/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 51970 2011-07-18 20:04:38Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Markus Härer <markus.haerer@gmx.net>
+
+pkgname=mysql++
+pkgver=3.1.0
+pkgrel=2
+pkgdesc="A C++ wraper for MySQLs C API"
+arch=("i686" "x86_64")
+url="http://tangentsoft.net/mysql++/"
+license=("LGPL" "custom")
+depends=("libmysqlclient")
+options=('docs')
+source=("http://tangentsoft.net/mysql++/releases/$pkgname-$pkgver.tar.gz"
+ "mysql++-fix-cstring.patch"
+ "mysql++-fix-size_t.patch")
+md5sums=('d92769cc579b87a60e58a77099cc4f0e'
+ '72f85a1bdba9d5285f0baf1d973033f8'
+ '6dcfbf06072b81cf27530ca9a0df8a8e')
+
+build() {
+ unset LDFLAGS
+ cd "$srcdir/$pkgname-$pkgver/"
+ patch -p1 <$srcdir/mysql++-fix-cstring.patch
+ patch -p1 <$srcdir/mysql++-fix-size_t.patch
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver/"
+ make DESTDIR="$pkgdir" install
+
+ #install docs
+ mkdir -p $pkgdir/usr/share/doc/mysql++
+ cp -r doc/html $pkgdir/usr/share/doc/mysql++
+ cp -r doc/pdf $pkgdir/usr/share/doc/mysql++
+
+ #install doc licence
+ install -Dm0644 doc/userman/LICENSE.txt $pkgdir/usr/share/licenses/mysql++/LICENSE
+}