#
-# Copyright (C) 2006-2016 OpenWrt.org
-#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=unrar
-PKG_VERSION:=5.4.5
+PKG_VERSION:=5.5.8
PKG_RELEASE:=1
PKG_SOURCE:=unrarsrc-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.rarlab.com/rar
-PKG_HASH:=e470c584332422893fb52e049f2cbd99e24dc6c6da971008b4e2ae4284f8796c
-PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
+PKG_HASH:=9b66e4353a9944bc140eb2a919ff99482dd548f858f5e296d809e8f7cdb2fcf4
+PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>, \
+ Ted Hess <thess@kitschensync.net>
PKG_LICENSE:=UnRAR
PKG_LICENSE_FILES:=license.txt
--- a/makefile
+++ b/makefile
-@@ -2,12 +2,12 @@
+@@ -2,13 +2,13 @@
# Makefile for UNIX - unrar
# Linux using GCC
LIBFLAGS=-fPIC
DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
STRIP=strip
+ AR=ar
-LDFLAGS=-pthread
+LDFLAGS=-lpthread
DESTDIR=/usr
# Linux using LCC
-@@ -142,7 +142,7 @@ uninstall-unrar:
+@@ -166,7 +166,7 @@ uninstall-unrar:
rm -f $(DESTDIR)/bin/unrar
install-lib:
- install libunrar.so $(DESTDIR)/lib
+ install -D libunrar.so $(DESTDIR)/lib/libunrar.so
+ install libunrar.a $(DESTDIR)/lib
uninstall-lib:
- rm -f $(DESTDIR)/lib/libunrar.so