updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / libunrar / PKGBUILD
blob54ff52c9725413619b1818f299aa0645fa5c68dd
1 # Maintainer: Ray Powell <ray_al@xphoniexx.net>
3 pkgname=libunrar
4 pkgsrcname=unrar
5 pkgver=4.0.7
6 pkgrel=1
7 pkgdesc="libunrar is part of the RAR compression program.  This library is needed by calibre to manipulate rar files"
8 arch=('i686' 'x86_64')
9 url="http://www.rarlab.com/rar_add.htm"
10 license=('custom')
11 depends=('gcc-libs')
12 source=("http://www.rarlab.com/rar/unrarsrc-${pkgver}.tar.gz" 'makefile.unix.patch')
13 md5sums=('41b0a9bca945b4ae2608421afd8f606e' '4418970ba2a3a6dd2d3849d27ff49843')
15 build() {
16   cp makefile.unix.patch ${srcdir}/${pkgsrcname}/
17   cd "${srcdir}/${pkgsrcname}"
18   patch makefile.unix < makefile.unix.patch
19   make -f makefile.unix lib
20   install -Dm755 libunrar.so ${pkgdir}/usr/lib/libunrar.so || return 1
21   # install license
22   install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1