summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ffb0f4ab67d2856ffa8419cb5bb0debc665b5960 (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
45
46
47
48
49
50
51
52
53
# Maintainer: Christian Krause ("wookietreiber") <kizkizzbangbang@googlemail.com>

pkgname=pixz-git

pkgver=r206.8d318b9
pkgrel=1
pkgdesc="parallel, indexed xz compressor"
arch=('i686' 'x86_64')
url="https://github.com/vasi/pixz"
license=('custom')
depends=('libarchive')
makedepends=('asciidoc')
checkdepends=('cppcheck')
conflicts=('pixz')
provides=('pixz')

source=("$pkgname::git+https://github.com/vasi/pixz")

md5sums=('SKIP')

pkgver() {
  cd $srcdir/$pkgname

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd $srcdir/$pkgname

  ./autogen.sh
}

build() {
  cd $srcdir/$pkgname

  ./configure --prefix=/usr

  make
}

check() {
  cd $srcdir/$pkgname

  make check
}

package() {
  cd $srcdir/$pkgname

  make DESTDIR=$pkgdir install

  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}