@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := unrar
PKG_VERSION := 5.3.7
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := unrarsrc-$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://www.rarlab.com/rar
@ -19,7 +19,7 @@ PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
PKG_LICENSE := UnRAR
PKG_LICENSE_FILES := license.txt
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( PKG_VERSION) /unrar
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( PKG_VERSION) -$( BUILD_VARIANT) /unrar
PKG_INSTALL := 1
i n c l u d e $( INCLUDE_DIR ) / u c l i b c + + . m k
@ -37,6 +37,7 @@ $(call Package/unrar/Default)
SECTION:= utils
CATEGORY:= Utilities
TITLE += ( application)
VARIANT:= bin
e n d e f
d e f i n e P a c k a g e / l i b u n r a r
@ -44,6 +45,7 @@ $(call Package/unrar/Default)
SECTION:= libs
CATEGORY:= Libraries
TITLE += ( library)
VARIANT:= lib
e n d e f
d e f i n e P a c k a g e / u n r a r / d e s c r i p t i o n
@ -56,11 +58,31 @@ define Package/libunrar/description
archives
e n d e f
i f e q ( $( BUILD_VARIANT ) , l i b )
d e f i n e B u i l d / C o m p i l e
$( call Build/Compile/Default,unrar)
$( call Build/Compile/Default,lib)
e n d e f
d e f i n e B u i l d / I n s t a l l
$( call Build/Install/Default,install-lib)
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include/unrar
$( CP) $( PKG_BUILD_DIR) /*.hpp $( 1) /usr/include/unrar/
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /lib/libunrar.so $( 1) /usr/lib/
e n d e f
e l s e
d e f i n e B u i l d / C o m p i l e
$( call Build/Compile/Default,unrar)
e n d e f
d e f i n e B u i l d / I n s t a l l
$( call Build/Install/Default,install-unrar)
e n d e f
e n d i f
d e f i n e P a c k a g e / u n r a r / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /bin/unrar $( 1) /usr/bin/
@ -68,7 +90,7 @@ endef
d e f i n e P a c k a g e / l i b u n r a r / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /libunrar.so $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /lib /libunrar.so $( 1) /usr/lib/
e n d e f
$( eval $ ( call BuildPackage ,unrar ) )