Skip to content

Instantly share code, notes, and snippets.

@bbidulock
Created April 12, 2018 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbidulock/3db3fd40673357174766ac7bbc34472a to your computer and use it in GitHub Desktop.
Save bbidulock/3db3fd40673357174766ac7bbc34472a to your computer and use it in GitHub Desktop.
PKGBUILD for pcs-git
# Maintainer: Noel Kuntze <noel@familie-kuntze.de>
pkgname=pcs-git
_pkgname=pcs
pkgver=0.9.164.r0.g04d95885
pkgrel=1
pkgdesc='pacemaker corosync shell utility for cluster configuration'
arch=('any')
url='http://clusterlabs.org/'
license=('GPL2')
depends=('python')
makedepends=('git' 'wget' 'python-setuptools')
provides=($_pkgname)
conflicts=($_pkgname)
source=("$pkgname::git+https://github.com/ClusterLabs/${_pkgname}#branch=${_pkgname}-0.9")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe --tags --long|sed -E 's,^[^0-9]*,,;s,-([0-9]*),.r\1,;s,-,.,g'
}
package() {
cd $pkgname
make DESTDIR="${pkgdir}" install
rm -fr "${pkgdir}/usr/bin"
mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin"
}
# vim: set sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment