summaryrefslogtreecommitdiff
path: root/community/mysql++/PKGBUILD
blob: da526a29e659df0014e8b65c9dc7dd9674812620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $Id: PKGBUILD 87010 2013-03-25 19:16:50Z bpiotrowski $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Markus Härer <markus.haerer@gmx.net>

pkgname=mysql++
pkgver=3.1.0
pkgrel=4
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=('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
}