summaryrefslogtreecommitdiff
path: root/community/libpar2/PKGBUILD
blob: 05317e3f03b5714af21a7d339b2a47a26577937a (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
# Maintainer: Jaroslav Lichtblau <tu@dragonlord.cz>
# Contributor: Paul Bredbury <brebs@sent.com>
# Contributor: Matt McDonald <metzen@gmail.com>

pkgname=libpar2
pkgver=0.2
pkgrel=4
pkgdesc="Parity checking library,"
arch=('i686' 'x86_64' 'mips64el')
url="http://parchive.sourceforge.net/"
license=('GPL')
depends=('libsigc++2.0')
makedepends=('autoconf' 'automake' 'pkgconfig')
options=(!libtool)
source=(http://downloads.sourceforge.net/sourceforge/parchive/${pkgname}-${pkgver}.tar.gz
	libpar2-0.2-bugfixes.patch)

md5sums=('94c6df4e38efe08056ecde2a04e0be91'
	 '66c306f42fb81016a7a58af8f45e2b68')

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

  patch -p0 < ${srcdir}/libpar2-0.2-bugfixes.patch || return 1
  autoreconf -fi || return 1
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=${pkgdir} install

#Docs
  install -d ${pkgdir}/usr/share/doc/${pkgname}
  install -m644 -t ${pkgdir}/usr/share/doc/${pkgname}/ AUTHORS PORTING README ROADMAP || return 1
}