Skip to content

Instantly share code, notes, and snippets.

@bbidulock
Created December 7, 2016 04:26
Show Gist options
  • Save bbidulock/430b4da62949a174219c17b8efbe7b14 to your computer and use it in GitHub Desktop.
Save bbidulock/430b4da62949a174219c17b8efbe7b14 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.155.r23.g587b55d
pkgrel=1
pkgdesc='pacemaker corosync shell utility for cluster configuration'
arch=('any')
url='http://clusterlabs.org/'
license=('GPL2')
depends=('python')
provides=($_pkgname)
conflicts=($_pkgname)
source=("$pkgname::git+https://github.com/ClusterLabs/$_pkgname")
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
mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment