1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
3 # Contributor: dorphell <dorphell@gmx.net>
6 pkgname=(unrar libunrar)
11 url='https://www.rarlab.com/rar_add.htm'
13 source=(https://www.rarlab.com/rar/unrarsrc-$pkgver.tar.gz)
14 sha256sums=('de75b6136958173fdfc530d38a0145b72342cf0d3842bf7bb120d336602d88ed')
17 sed -e '/CXXFLAGS=/d' -e '/LDFLAGS=/d' -i unrar/makefile # Use system build flags
22 export LDFLAGS+=' -pthread'
28 pkgdesc='The RAR uncompression program'
31 install -Dm755 unrar -t "$pkgdir"/usr/bin/
33 install -Dm644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
37 pkgdesc='Library and header file for applications that use libunrar'
40 install -Dm755 libunrar.so -t "$pkgdir"/usr/lib/
41 install -Dm644 dll.hpp -t "$pkgdir"/usr/include/unrar/
43 install -Dm644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE