distribution/packages/sysutils/unrar/package.mk

35 lines
815 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="unrar"
PKG_VERSION="5.6.8"
PKG_SHA256="a4cc0ac14a354827751912d2af4a0a09e2c2129df5766576fa7e151791dd3dff"
PKG_LICENSE="free"
PKG_SITE="http://www.rarlab.com"
2023-02-24 13:53:43 +00:00
PKG_URL="http://www.rarlab.com/rar/unrarsrc-${PKG_VERSION}.tar.gz"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="unrar extract, test and view RAR archives"
PKG_TOOLCHAIN="manual"
PKG_BUILD_FLAGS="+pic"
make_target() {
2023-02-24 13:53:43 +00:00
make CXX="${CXX}" \
CXXFLAGS="${TARGET_CXXFLAGS}" \
2022-02-05 14:23:32 +00:00
RANLIB="$RANLIB" \
AR="$AR" \
2023-02-24 13:53:43 +00:00
STRIP="${STRIP}" \
2022-02-05 14:23:32 +00:00
-f makefile unrar
make clean
2023-02-24 13:53:43 +00:00
make CXX="${CXX}" \
CXXFLAGS="${TARGET_CXXFLAGS}" \
2022-02-05 14:23:32 +00:00
RANLIB="$RANLIB" \
AR="$AR" \
-f makefile lib
}
post_make_target() {
rm -f libunrar.so
}