Created
March 22, 2017 18:00
-
-
Save bastelfreak/cb844dcc413ca9dbae12e0d38504fe60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Brian Bidulock <bidulock@openss7.org> | |
# Contributor: Tim Meusel <tim@bastelfreak.de> | |
pkgname=crmsh | |
pkgver=2.2.1 | |
pkgrel=2 | |
pkgdesc="Command-line interface for high-availability cluster management on GNU/Linux systems" | |
arch=('any') | |
url="https://github.com/ClusterLabs/${pkgname}/" | |
license=('GPL2') | |
makedepends=('asciidoc') | |
depends=('python2' 'gawk' 'python2-lxml') | |
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ClusterLabs/$pkgname/archive/$pkgver.tar.gz") | |
md5sums=('81f8e4595fa53f9f220a7500e3759e6c') | |
prepare() { | |
cd ${pkgname}-${pkgver} | |
./autogen.sh | |
} | |
build() { | |
cd ${pkgname}-${pkgver} | |
PYTHON=python2 ./configure --prefix=/usr \ | |
--libdir=/usr/lib \ | |
--sbindir=/usr/bin \ | |
--sysconfdir=/etc \ | |
--localstatedir=/var | |
make V=0 | |
} | |
package() { | |
cd ${pkgname}-${pkgver} | |
make DESTDIR="${pkgdir}" install | |
sed -i 's#python#python2#' "${pkgdir}/usr/bin/crm" | |
} | |
# vim: set sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment