Created
April 12, 2018 08:21
-
-
Save bbidulock/3db3fd40673357174766ac7bbc34472a 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.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