#!/bin/mkpkg # description: RAR uncompression program # url: https://www.rarlab.com/rar_add.htm name=unrar version=7.3.1 release=1 source=(https://www.rarlab.com/rar/unrarsrc-${version}.tar.gz) sha256sums=( "634900842a3737d9cc15bbcc71d4c74cc713437e0bca296a573424fe5f2660ab" ) build() { cd unrar make -j${JOBS:-1} \ CXX=clang++ \ CXXFLAGS="-O2 -std=c++17 -stdlib=libc++ -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else" \ LDFLAGS="-pthread -stdlib=libc++" \ DEFINES="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP" \ STRIP=: \ unrar make DESTDIR=$PKG/usr install-unrar } signify() { untrusted comment: public key RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 } # vim: filetype=sh