diff options
Diffstat (limited to 'community/libpar2/PKGBUILD')
-rw-r--r-- | community/libpar2/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/community/libpar2/PKGBUILD b/community/libpar2/PKGBUILD new file mode 100644 index 000000000..db732b4d4 --- /dev/null +++ b/community/libpar2/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> +# Contributor: Paul Bredbury <brebs@sent.com> +# Contributor: Matt McDonald <metzen@gmail.com> + +pkgname=libpar2 +pkgver=0.2 +pkgrel=6 +pkgdesc="Parity checking library" +arch=('i686' 'x86_64') +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 libpar2-0.2-cancel.patch) +sha256sums=('074fbf840f73b1e13e0405fce261078c81c8c0a4859e30a7bba10510f9199908' + 'bcdb0cf45b97b99bc2fb05074887bd73be15745d5d2ce94d65bd0e0c248fb341' + 'b05e08033dd2056b47c5610a5bd1d74b93dc283d2f798bfc0d3d9e3fd4f9da14') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + patch -p2 < ${srcdir}/libpar2-0.2-bugfixes.patch + patch -p2 < ${srcdir}/libpar2-0.2-cancel.patch + + ./configure --prefix=/usr + + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install + +# Docs + install -d ${pkgdir}/usr/share/doc/${pkgname} + install -m644 -t ${pkgdir}/usr/share/doc/${pkgname}/ AUTHORS PORTING README ROADMAP +} |