Created
May 19, 2017 15:57
-
-
Save bbidulock/d4026dec8e45aa116f00a24fbabe2009 to your computer and use it in GitHub Desktop.
PKGBUILD for libqb-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: Ian Beringer <[email protected]> | |
pkgname=libqb-git | |
_pkgname=libqb | |
pkgver=1.0.2.r0.g608de6d | |
pkgrel=1 | |
pkgdesc='Library with the primary purpose of providing high performance client server reusable features' | |
arch=('i686' 'x86_64') | |
provides=('libqb') | |
conflicts=('libqb') | |
depends=('glibc') | |
makedepends=('git' 'doxygen' 'splint') | |
license=('LGPL2.1') | |
url="https://github.com/ClusterLabs/${_pkgname}" | |
source=("${pkgname}::git+https://github.com/ClusterLabs/libqb.git") | |
md5sums=('SKIP') | |
pkgver() { | |
cd ${pkgname} | |
git describe --long --tags | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g' | |
} | |
prepare() { | |
cd ${pkgname} | |
echo "$pkgver"|sed 's,\.r,.,;s,\.g.*,,' >.tarball-version | |
mkdir -p m4 | |
autoreconf -fiv | |
} | |
build() { | |
cd ${pkgname} | |
./configure \ | |
--prefix=/usr \ | |
--disable-fatal-warnings \ | |
--disable-static \ | |
--libdir=/usr/lib \ | |
--sbindir=/usr/bin | |
make V=0 | |
} | |
package() { | |
cd ${pkgname} | |
make DESTDIR="${pkgdir}" install | |
} | |
# vim: set et sw=2: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment