Created
December 7, 2016 04:26
-
-
Save bbidulock/430b4da62949a174219c17b8efbe7b14 to your computer and use it in GitHub Desktop.
PKGBUILD for pcs-git
This file contains hidden or 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: Noel Kuntze <[email protected]> | |
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