aboutsummaryrefslogtreecommitdiffstats
path: root/testing/drizzle/APKBUILD
blob: 641b9a30ab2a065b5d663316af7b1739eee07e7a (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=drizzle
pkgver=7.1.33
pkgrel=2
pkgdesc="A MySQL-derived RDBMS for cloud usage and webapps"
url="http://launchpad.net/drizzle"
arch=""
license="GPL"
depends=
depends_dev="gperf protobuf-dev pcre-dev boost-dev intltool protobuf-dev
readline-dev python gettext-dev util-linux-dev curl-dev sqlite-dev"
makedepends="$depends_dev"
install="drizzle.post-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-client $pkgname-libs $pkgname-plugins"
source="
	https://launchpad.net/drizzle/${pkgver%.*}/$pkgver/+download/drizzle-$pkgver-stable.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="80dbbbdb3ba0ae0059e77cc59e05e45b  drizzle-7.1.33-stable.tar.gz
03b05074b95a241c4d07dfd8661baf9f  drizzle.initd"
sha256sums="12215b143f4a77ba44a7312313f1d187d598c6dd5b7eb949a7404599e827fcc0  drizzle-7.1.33-stable.tar.gz
06b47d0a1ee754a3ef54ef03ceea5c1ffa00372ae52cf673f7fa9bc1e6302718  drizzle.initd"
sha512sums="cb2cd9b7b1f08483a52eb80d14a051ee1b14901d63745a5faeda64f2181b6ea440573d4dd020da37930242781135dcd99d90ae130d74b53332ee5d88295e2ad1  drizzle-7.1.33-stable.tar.gz
5e1a9c7bd2bf86709d7a58f81ae43f8082f5b779df1bf34de95bc3310b14daed2c6d61fa9ae066cf4f80cb49f8b55eb8c7149cd6cb25b5b6ff57eb9cbb1c7e83  drizzle.initd"