summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f90b3c0fcdf755cea275efd40f5f2e1ebda9130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Dan Ziemba <zman0900@gmail.com>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>

pkgname=lbzip2-git
pkgver=2.5.r36.g8702655
pkgrel=1
pkgdesc="A parallel, SMP-based, bzip2-compatible compression utility"
arch=('i686' 'x86_64')
url="http://lbzip2.org/"
license=('GPL3')
depends=('glibc')
makedepends=('perl' 'gnulib' 'git')
provides=('lbzip2')
conflicts=('lbzip2')

_gitname="lbzip2"
source=($_gitname'::git+https://github.com/kjn/lbzip2.git#branch=master')
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$_gitname"
    git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/^v//g'
}

build() {
  cd "$srcdir/$_gitname"

  ./build-aux/autogen.sh	
  ./configure --prefix=/usr
  make
}

check() {
  cd "$srcdir/$_gitname"
  
  make check
}

package() {
  cd "$srcdir/$_gitname"

  make DESTDIR=${pkgdir} install
}