summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 696030920ddc26de91f2d6bd38ef64fdca947f52 (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
# Maintainer: omgold@aur
# Contributor: Noel Kuntze <noel@familie-kuntze.de>
# COntributor: Brian Bidulock <bidulock@openss7.org>

pkgname=pcs
pkgver=0.11.8
pkgrel=1
pkgdesc='pacemaker corosync shell utility for cluster configuration'
arch=('any')
url='http://clusterlabs.org/'
license=('GPL2')
depends=('pacemaker'
         'python'
         'python-dacite'
         'python-pycurl'
         'python-lxml'
         'python-dateutil'
         'python-pyparsing'
         'python-tornado'
         'python-yaml'
         'python-urllib3'
         'python-simplejson'
         'ruby'
         'ttf-liberation')

makedepends=('wget' 'python-setuptools' 'python-setuptools-scm' 'python-pip' 'ruby-bundler' 'fontconfig' 'ruby-bundler')
source=("git+https://github.com/ClusterLabs/$pkgname#commit=694c165b81af4847965afa1cdf61a1441e98dfc4")
sha256sums=(SKIP)

prepare() {
    cd $pkgname
    ./autogen.sh
    ./configure --prefix=/usr --with-distro=fedora --enable-local-build
}

build() {
  cd $pkgname
  make
}

package() {
  cd $pkgname
  make DESTDIR="${pkgdir}" install
  rm -fr "${pkgdir}/usr/bin"
  mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin"
}

# vim: set sw=2 et: