# Packager = Tuxcore <dev@tuxcore.org> 
pkgname=pbzip2
pkgver=1.1.13
pkgrel=3
pkgdesc="Parallel implementation of the bzip2 block-sorting file compressor"
arch=('x86_64')
url="http://compression.ca/pbzip2/"
license=('BSD')
depends=('bzip2' 'gcc-libs')
source=(https://launchpad.net/$pkgname/1.1/$pkgver/+download/$pkgname-$pkgver.tar.gz{,.asc})
sha256sums=('8fd13eaaa266f7ee91f85c1ea97c86d9c9cc985969db9059cdebcb1e1b7bdbe6'
            'SKIP')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"

  # Use our CXXFLAGS and LDFLAGS
  sed -i '/^\(CXX\|LD\)FLAGS =/d' Makefile
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make PREFIX=/usr DESTDIR="$pkgdir" install
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

# vim:set ts=2 sw=2 et:
