archrelease: copy trunk to extra-x86_64
[arch-packages.git] / unrar / trunk / PKGBUILD
blob5d1dc2e278cbaf249a0e403df0eba45f929a99a8
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
3 # Contributor: dorphell <dorphell@gmx.net>
5 pkgbase=unrar
6 pkgname=(unrar libunrar)
7 pkgver=6.1.7
8 pkgrel=1
9 epoch=1
10 arch=(x86_64)
11 url='https://www.rarlab.com/rar_add.htm'
12 license=(custom)
13 source=(https://www.rarlab.com/rar/unrarsrc-$pkgver.tar.gz)
14 sha256sums=('de75b6136958173fdfc530d38a0145b72342cf0d3842bf7bb120d336602d88ed')
16 prepare() {
17   sed -e '/CXXFLAGS=/d' -e '/LDFLAGS=/d' -i unrar/makefile # Use system build flags
20 build() {
21   cp -a unrar libunrar
22   export LDFLAGS+=' -pthread'
23   make -C libunrar lib
24   make -C unrar -j1
27 package_unrar() {
28   pkgdesc='The RAR uncompression program'
29   depends=(gcc-libs)
30   cd unrar
31   install -Dm755 unrar -t "$pkgdir"/usr/bin/
32   # install license
33   install -Dm644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
36 package_libunrar() {
37   pkgdesc='Library and header file for applications that use libunrar'
38   depends=(gcc-libs)
39   cd libunrar
40   install -Dm755 libunrar.so -t "$pkgdir"/usr/lib/
41   install -Dm644 dll.hpp -t "$pkgdir"/usr/include/unrar/
42   # install license
43   install -Dm644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE