From ff2aa079062c7471c39590abf33d3f38b0c4abc7 Mon Sep 17 00:00:00 2001 From: Michael Reed Date: Mon, 30 Jun 2014 17:03:20 -0400 Subject: PKGBUILD-git improvements - Remove two configure flags which just caused warnings. - Replace `pkgver` function with a working one. - Explicititly `cd` into `srcdir` before `gitname` as found in `PKGBUILD-git.proto`. - Bump `pkgrel`. - Specify correct package version. --- arch/git-PKGBUILD.in | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) (limited to 'arch/git-PKGBUILD.in') diff --git a/arch/git-PKGBUILD.in b/arch/git-PKGBUILD.in index 5f70822..0f4722d 100644 --- a/arch/git-PKGBUILD.in +++ b/arch/git-PKGBUILD.in @@ -1,8 +1,8 @@ # Maintainer: Pat Brisbin _gitname='@PACKAGE@' pkgname=$_gitname-git -pkgver=0.0.0 -pkgrel=3 +pkgver=v1.2.3.r6.gdb0be68 +pkgrel=4 pkgdesc="rc file (dotfile) management" arch=('any') url="http://thoughtbot.github.io/@PACKAGE@/" @@ -13,34 +13,26 @@ source=('git://github.com/thoughtbot/@PACKAGE@') md5sums=('SKIP') pkgver() { - cd "$_gitname" - - git describe --always | sed 's|-|.|g' + cd "$srcdir/$_gitname" + git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' } prepare() { - cd "$_gitname" - + cd "$srcdir/$_gitname" ./autogen.sh } build() { - cd "$_gitname" - + cd "$srcdir/$_gitname" ./configure \ - --disable-debug \ - --disable-dependency-tracking \ - --disable-silent-rules \ - --prefix=/usr - + --disable-silent-rules \ + --prefix=/usr make } package() { - cd "$_gitname" - + cd "$srcdir/$_gitname" make DESTDIR="$pkgdir/" install - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_gitname/LICENSE" } -- cgit v1.2.3