diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/mysql++/PKGBUILD | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/mysql++/PKGBUILD')
-rw-r--r-- | community/mysql++/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/community/mysql++/PKGBUILD b/community/mysql++/PKGBUILD new file mode 100644 index 000000000..6b5364edf --- /dev/null +++ b/community/mysql++/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 93854 2013-07-11 12:03:32Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Markus Härer <markus.haerer@gmx.net> + +pkgname=mysql++ +pkgver=3.2.0 +pkgrel=1 +pkgdesc="A C++ wraper for MySQLs C API" +arch=("i686" "x86_64") +url="http://tangentsoft.net/mysql++/" +license=("LGPL" "custom") +depends=("libmariadbclient") +options=('docs') +source=("http://tangentsoft.net/mysql++/releases/$pkgname-$pkgver.tar.gz" + "mysql++-fix-cstring.patch" + "mysql++-fix-size_t.patch") +md5sums=('d2220b74e000d8ede13f451fe99bad5a' + '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 +} |