diff options
author | Brian Bidulock | 2017-05-19 10:08:11 -0600 |
---|---|---|
committer | Brian Bidulock | 2017-05-19 10:08:11 -0600 |
commit | d94a5e15e28bde4ca095c3605773f72066e6f38e (patch) | |
tree | 6c10490341bf2c33840cb858443a6381728f95b3 | |
parent | f0426df3ac2e81de1c1ae8ea6e185a05839c1b6c (diff) | |
download | aur-d94a5e15e28bde4ca095c3605773f72066e6f38e.tar.gz |
sets VERSION properly
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 32 insertions, 19 deletions
@@ -1,6 +1,6 @@ pkgbase = libqb-git pkgdesc = Library with the primary purpose of providing high performance client server reusable features - pkgver = 1.0.1.17.g75345a0 + pkgver = 1.0.2.r0.g608de6d pkgrel = 1 url = https://github.com/ClusterLabs/libqb arch = i686 @@ -12,8 +12,8 @@ pkgbase = libqb-git depends = glibc provides = libqb conflicts = libqb - source = libqb::git+https://github.com/ClusterLabs/libqb.git - sha256sums = SKIP + source = libqb-git::git+https://github.com/ClusterLabs/libqb.git + md5sums = SKIP pkgname = libqb-git @@ -2,32 +2,45 @@ pkgname=libqb-git _pkgname=libqb -pkgver=1.0.1.17.g75345a0 +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") -depends=("glibc") -makedepends=("git" "doxygen" "splint") -license=('LGPL2.1') -url=https://github.com/ClusterLabs/$_pkgname -source=("${_pkgname}::git+https://github.com/ClusterLabs/libqb.git") -sha256sums=('SKIP') +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 "${srcdir}/${_pkgname}" - git describe --tags | sed -e 's:v::' -e 's/-/./g' + 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 "${srcdir}/${_pkgname}" - ./autogen.sh - ./configure --prefix=/usr --sbindir=/usr/bin --libdir=/usr/lib - make + cd ${pkgname} + ./configure \ + --prefix=/usr \ + --disable-fatal-warnings \ + --disable-static \ + --libdir=/usr/lib \ + --sbindir=/usr/bin + make V=0 } package() { - cd "${srcdir}/${_pkgname}" - make DESTDIR="$pkgdir/" install + cd ${pkgname} + make DESTDIR="${pkgdir}" install } + +# vim: set et sw=2: |