aboutsummaryrefslogtreecommitdiffstats
path: root/community/drbdmanage/APKBUILD
blob: 463c61406c9473f231decaece4b5ce229a8db019 (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
# Contributor: Roland Kammerer <roland.kammerer@linbit.com>
# Maintainer: Roland Kammerer <roland.kammerer@linbit.com>
_usname=drbdmanage
pkgname=$_usname
pkgver=0.99.18
pkgrel=0
pkgdesc="DRBD9 Cluster Management Tool"
url="http://www.drbd.org"
arch="noarch"
license="GPL"
depends="python2 py-gobject dbus py-dbus lvm2 drbd-utils>=9.0.0"
depends_dev=""
makedepends="python2-dev libxslt docbook-xsl help2man"
install=""
subpackages="$pkgname-doc"
source="http://www.linbit.com/downloads/drbdmanage/drbdmanage-$pkgver.tar.gz
        rm-systemd-and-bash.patch"

_builddir=$srcdir/$_usname-$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"
	python2 setup.py build_man || return 1
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

sha512sums="2f4ca51c87b6c657f8f5bc06edec6076b78c7dc414515ea03d912838250b8507dc88db74147fcc8b7085a8a7a22047021a2a86dd13491a6dbcd8ab4facbaf64c  drbdmanage-0.99.18.tar.gz
ad3c18c6fc56df0ca594afb56accb8832509489234736098c6a40b4ed2f81be16efe2c552ae6e19375d44881cf24e534d2d8cc04e14f0d98817fd8d4c614ed99  rm-systemd-and-bash.patch"