# Contributor: Carlo Landmeter # Maintainer: pkgname=resouce-agents pkgver=3.9.2 pkgrel=0 pkgdesc="Open Source HA Reusable Cluster Resource Scripts" url="http://www.linux-ha.org/wiki/Resource_Agents" arch="all" license="GPL2" depends="" depends_dev="cluster-glue-dev libxslt-dev libnet-dev" makedepends="$depends_dev automake autoconf perl docbook-xsl wget bash" install="" subpackages="$pkgname-dev $pkgname-doc" source="saveas-https://github.com/ClusterLabs/resource-agents/tarball/v3.9.2/resouce-agents-3.9.2.tar.gz" _builddir="$srcdir"/ClusterLabs-resource-agents-b735277 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 sed -i 's/export -n/export/g' configure.ac } build() { cd "$_builddir" ./autogen.sh ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-fatal-warnings=no \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="3b5790e8041f2a459d8a0ff310682bfe resouce-agents-3.9.2.tar.gz"