Skip to content
Snippets Groups Projects
PKGBUILD 950 B
Newer Older
Evangelos Foutras's avatar
Evangelos Foutras committed
# Contributor: Vasco Costa <vasco dot costa at geekslot dot com>
# Maintainer: Evangelos Foutras <foutrelis@archlinux.org>
Evangelos Foutras's avatar
Evangelos Foutras committed

pkgname=pbzip2
pkgver=1.1.13
pkgrel=3
pkgdesc="Parallel implementation of the bzip2 block-sorting file compressor"
arch=('x86_64')
Evangelos Foutras's avatar
Evangelos Foutras committed
url="http://compression.ca/pbzip2/"
license=('BSD')
depends=('bzip2' 'gcc-libs')
Evangelos Foutras's avatar
Evangelos Foutras committed
source=(https://launchpad.net/$pkgname/1.1/$pkgver/+download/$pkgname-$pkgver.tar.gz{,.asc})
sha256sums=('8fd13eaaa266f7ee91f85c1ea97c86d9c9cc985969db9059cdebcb1e1b7bdbe6'
Evangelos Foutras's avatar
Evangelos Foutras committed
            'SKIP')
Evangelos Foutras's avatar
Evangelos Foutras committed
validpgpkeys=('F3D99FF0F0AA96A659AD61A9D332F1B09A0D9836')
Evangelos Foutras's avatar
Evangelos Foutras committed

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

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

Evangelos Foutras's avatar
Evangelos Foutras committed
build() {
  cd "$srcdir/$pkgname-$pkgver"
Evangelos Foutras's avatar
Evangelos Foutras committed
  make
Evangelos Foutras's avatar
Evangelos Foutras committed
}

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

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