# Description: Extracts RAR archives
# URL: https://www.rarlab.com/rar_add.htm
# Maintainer: Tim Biermann, tbier at posteo dot de

name=unrar
version=7.0.7
release=1
source=(https://www.rarlab.com/rar/${name}src-$version.tar.gz)

build() {
  cd $name

  sed -e '/CXXFLAGS=/d' -e '/LDFLAGS=/d' -i makefile
  export LDFLAGS+=' -pthread'
  make -j1 STRIP=:
  make install DESTDIR=$PKG/usr
}
