# Contributor: Kiyoshi Aman # Maintainer: Kiyoshi Aman pkgname=drizzle pkgver=2011.03.13 pkgrel=0 pkgdesc="A MySQL-derived RDBMS for cloud usage and webapps" url="http://launchpad.net/drizzle" arch="all" license="GPL" depends= depends_dev= makedepends="gperf protobuf-dev pcre-dev boost-dev intltool protobuf-dev readline-dev python" install="drizzle.post-install" subpackages="$pkgname-dev $pkgname-doc $pkgname-client $pkgname-libs $pkgname-plugins" source=" http://launchpad.net/drizzle/elliott/2011-03-14/+download/drizzle7-$pkgver.tar.gz drizzle.initd " _builddir="$srcdir"/drizzle7-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-nls \ --without-slave-plugin \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } client() { mkdir -p "$subpkgdir"/usr/ mv "$pkgdir"/usr/bin "$subpkgdir"/usr } libs() { mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/lib*.so* "$subpkgdir"/usr/lib } plugins() { mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/drizzle7 "$subpkgdir"/usr/lib } md5sums="e152edfec45779c0bd34ece707aa022d drizzle7-2011.03.13.tar.gz 000974e04609dbffb3e1e78b268fcc73 drizzle.initd"