Date: Monday, February 15, 2016 @ 20:18:09
  Author: anatolik
Revision: 259340

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  unrar/repos/testing-i686/
  unrar/repos/testing-i686/PKGBUILD
    (from rev 259339, unrar/trunk/PKGBUILD)
  unrar/repos/testing-i686/unrar-5.3.4-soname.patch
    (from rev 259339, unrar/trunk/unrar-5.3.4-soname.patch)
  unrar/repos/testing-x86_64/
  unrar/repos/testing-x86_64/PKGBUILD
    (from rev 259339, unrar/trunk/PKGBUILD)
  unrar/repos/testing-x86_64/unrar-5.3.4-soname.patch
    (from rev 259339, unrar/trunk/unrar-5.3.4-soname.patch)

-----------------------------------------+
 testing-i686/PKGBUILD                   |   50 ++++++++++++++++++++++++++++++
 testing-i686/unrar-5.3.4-soname.patch   |   11 ++++++
 testing-x86_64/PKGBUILD                 |   50 ++++++++++++++++++++++++++++++
 testing-x86_64/unrar-5.3.4-soname.patch |   11 ++++++
 4 files changed, 122 insertions(+)

Copied: unrar/repos/testing-i686/PKGBUILD (from rev 259339, 
unrar/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD                               (rev 0)
+++ testing-i686/PKGBUILD       2016-02-15 19:18:09 UTC (rev 259340)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Giovanni Scafora <giova...@archlinux.org>
+# Contributor: dorphell <dorph...@gmx.net>
+
+pkgbase=unrar
+pkgname=('unrar' 'libunrar')
+pkgver=5.3.11
+pkgrel=1
+epoch=1
+arch=('i686' 'x86_64')
+url="http://www.rarlab.com/rar_add.htm";
+license=('custom')
+makedepends=('hardening-wrapper')
+source=("http://www.rarlab.com/rar/unrarsrc-${pkgver}.tar.gz";
+        'unrar-5.3.4-soname.patch')
+md5sums=('4a29cc1b47ced82db11e06090a95ed51'
+         'cd9a5291db0379d73148872cf6e6d3ce')
+
+prepare() {
+  cd "${srcdir}/${pkgbase}"
+  patch -Np1 -i "${srcdir}/unrar-5.3.4-soname.patch"
+}
+
+build() {
+  cd "${srcdir}/${pkgbase}"
+  cp -a ${srcdir}/unrar ${srcdir}/libunrar
+  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"
+}
+
+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.5"
+  ln -s libunrar.so.${pkgver} "${pkgdir}/usr/lib/libunrar.so"
+  # install license
+  install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: unrar/repos/testing-i686/unrar-5.3.4-soname.patch (from rev 259339, 
unrar/trunk/unrar-5.3.4-soname.patch)
===================================================================
--- testing-i686/unrar-5.3.4-soname.patch                               (rev 0)
+++ testing-i686/unrar-5.3.4-soname.patch       2016-02-15 19:18:09 UTC (rev 
259340)
@@ -0,0 +1,11 @@
+--- 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
+-      $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
++      $(LINK) -shared -Wl,-soname,libunrar.so.$(libversion) -o 
libunrar.so.$(libversion) $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
+ 
+ install-unrar:
+                       install -D unrar $(DESTDIR)/bin/unrar

Copied: unrar/repos/testing-x86_64/PKGBUILD (from rev 259339, 
unrar/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2016-02-15 19:18:09 UTC (rev 259340)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Giovanni Scafora <giova...@archlinux.org>
+# Contributor: dorphell <dorph...@gmx.net>
+
+pkgbase=unrar
+pkgname=('unrar' 'libunrar')
+pkgver=5.3.11
+pkgrel=1
+epoch=1
+arch=('i686' 'x86_64')
+url="http://www.rarlab.com/rar_add.htm";
+license=('custom')
+makedepends=('hardening-wrapper')
+source=("http://www.rarlab.com/rar/unrarsrc-${pkgver}.tar.gz";
+        'unrar-5.3.4-soname.patch')
+md5sums=('4a29cc1b47ced82db11e06090a95ed51'
+         'cd9a5291db0379d73148872cf6e6d3ce')
+
+prepare() {
+  cd "${srcdir}/${pkgbase}"
+  patch -Np1 -i "${srcdir}/unrar-5.3.4-soname.patch"
+}
+
+build() {
+  cd "${srcdir}/${pkgbase}"
+  cp -a ${srcdir}/unrar ${srcdir}/libunrar
+  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"
+}
+
+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.5"
+  ln -s libunrar.so.${pkgver} "${pkgdir}/usr/lib/libunrar.so"
+  # install license
+  install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: unrar/repos/testing-x86_64/unrar-5.3.4-soname.patch (from rev 259339, 
unrar/trunk/unrar-5.3.4-soname.patch)
===================================================================
--- testing-x86_64/unrar-5.3.4-soname.patch                             (rev 0)
+++ testing-x86_64/unrar-5.3.4-soname.patch     2016-02-15 19:18:09 UTC (rev 
259340)
@@ -0,0 +1,11 @@
+--- 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
+-      $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
++      $(LINK) -shared -Wl,-soname,libunrar.so.$(libversion) -o 
libunrar.so.$(libversion) $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
+ 
+ install-unrar:
+                       install -D unrar $(DESTDIR)/bin/unrar

Reply via email to