diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-12-03 21:34:31 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-12-03 21:34:31 (GMT) |
commit | 1c3f77e9c90b371bbb5ccd3b1c8fd79ca6629510 (patch) | |
tree | d5cbc7b3e32f9093639bc5db2c96e99b24aea083 /abs | |
parent | 4c8e51cb87731305de51f7e195eb3fb0dd8f7c36 (diff) | |
download | linhes_pkgbuild-1c3f77e9c90b371bbb5ccd3b1c8fd79ca6629510.zip linhes_pkgbuild-1c3f77e9c90b371bbb5ccd3b1c8fd79ca6629510.tar.gz linhes_pkgbuild-1c3f77e9c90b371bbb5ccd3b1c8fd79ca6629510.tar.bz2 |
unrar: update to 5.2.2
Diffstat (limited to 'abs')
-rw-r--r-- | abs/extra/unrar/PKGBUILD | 27 | ||||
-rw-r--r-- | abs/extra/unrar/unrar-5.2.2-soname.patch (renamed from abs/extra/unrar/unrar-4.2.1-soname.patch) | 6 |
2 files changed, 17 insertions, 16 deletions
diff --git a/abs/extra/unrar/PKGBUILD b/abs/extra/unrar/PKGBUILD index f4ef1a1..68bd852 100644 --- a/abs/extra/unrar/PKGBUILD +++ b/abs/extra/unrar/PKGBUILD @@ -1,35 +1,37 @@ -# $Id: PKGBUILD 161802 2012-06-14 17:00:58Z giovanni $ +# $Id$ # Maintainer: Giovanni Scafora <giovanni@archlinux.org> # Contributor: dorphell <dorphell@gmx.net> pkgbase=unrar pkgname=('unrar' 'libunrar') -pkgver=4.2.4 +pkgver=5.2.2 pkgrel=1 +epoch=1 arch=('i686' 'x86_64') url="http://www.rarlab.com/rar_add.htm" license=('custom') makedepends=('gcc-libs') source=("http://www.rarlab.com/rar/unrarsrc-${pkgver}.tar.gz" - 'unrar-4.2.1-soname.patch') -md5sums=('8ea9d1b4139474b282d76e627a2de3e4' - 'b9ec767da9a36f5ac38034c974e77758') + 'unrar-5.2.2-soname.patch') +md5sums=('69ef5af8442cbb7dfdebe298bfb9c61a' + 'cd9a5291db0379d73148872cf6e6d3ce') -build() { +prepare() { cd "${srcdir}/${pkgbase}" + patch -Np1 -i "${srcdir}/unrar-5.2.2-soname.patch" +} - patch -Np0 -i "${srcdir}/unrar-4.2.1-soname.patch" - +build() { + cd "${srcdir}/${pkgbase}" cp -a ${srcdir}/unrar ${srcdir}/libunrar - make -C "${srcdir}"/libunrar -f makefile.unix lib libversion=${pkgver} CXXFLAGS="-fPIC ${CXXFLAGS}" - make -f makefile.unix CXXFLAGS="-fPIC ${CXXFLAGS}" STRIP="true" + make -C "${srcdir}"/libunrar lib libversion=${pkgver} CXXFLAGS="-fPIC ${CXXFLAGS}" + make CXXFLAGS="-fPIC ${CXXFLAGS}" STRIP="true" } package_unrar() { pkgdesc="The RAR uncompression program" depends=('gcc-libs') cd "${srcdir}/${pkgbase}" - install -Dm755 unrar "${pkgdir}/usr/bin/unrar" # install license install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" @@ -39,10 +41,9 @@ package_libunrar() { pkgdesc="Library and header file for applications that use libunrar" depends=('gcc-libs') cd "${srcdir}/libunrar" - install -Dm755 libunrar.so.${pkgver} "${pkgdir}/usr/lib/libunrar.so.${pkgver}" install -Dm644 dll.hpp "${pkgdir}/usr/include/unrar/dll.hpp" - ln -s libunrar.so.${pkgver} "${pkgdir}/usr/lib/libunrar.so.4" + ln -s libunrar.so.${pkgver} "${pkgdir}/usr/lib/libunrar.so.5" ln -s libunrar.so.${pkgver} "${pkgdir}/usr/lib/libunrar.so" # install license install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" diff --git a/abs/extra/unrar/unrar-4.2.1-soname.patch b/abs/extra/unrar/unrar-5.2.2-soname.patch index 83ebe96..24d250a 100644 --- a/abs/extra/unrar/unrar-4.2.1-soname.patch +++ b/abs/extra/unrar/unrar-5.2.2-soname.patch @@ -1,6 +1,6 @@ ---- makefile.unix 2012-02-23 10:23:14.000000000 +0100 -+++ makefile.unix 2012-05-05 12:58:13.000000000 +0200 -@@ -131,7 +131,7 @@ +--- a/makefile 2013-04-29 16:27:05.000000000 +0200 ++++ b/makefile 2013-10-01 22:07:29.611485989 +0200 +@@ -133,7 +133,7 @@ lib: CXXFLAGS+=$(LIBFLAGS) lib: clean $(OBJECTS) $(LIB_OBJ) @rm -f libunrar.so |