summaryrefslogtreecommitdiff
path: root/libre/unar/PKGBUILD
blob: c6f91f4de831abca395f75a7c01a398772898acf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer (Arch): Cedric Girard <girard.cedric@gmail.com>
# Contributor (Arch): N30N <archlinux@alunamation.com>
# Maintainer: André Silva <emulatorman@parabola.nu>

pkgname=unar
pkgver=1.10.1
pkgrel=2
pkgdesc="An Objective-C application for uncompressing archive files"
arch=('x86_64' 'i686' 'armv7h')
url="http://unarchiver.c3.cx/"
license=('LGPL2.1')
depends=('gnustep-base' 'openssl' 'bzip2' 'icu=58.1' 'gcc-libs' 'zlib')
makedepends=('gcc-objc')
replaces=('unarchiver' 'unrar')
conflicts=('unarchiver' 'unrar')
provides=('unarchiver' 'unrar')
source=("http://unarchiver.c3.cx/downloads/${pkgname}${pkgver}_src.zip"
        "native_obj_exceptions.patch")

build() {
  cd "$srcdir/The Unarchiver"

  patch -p1 < ../native_obj_exceptions.patch

  cd XADMaster
  . /usr/share/GNUstep/Makefiles/GNUstep.sh
  make -f Makefile.linux
}

package() {
  cd "$srcdir/The Unarchiver/XADMaster"
  install -d "$pkgdir/usr/bin/"
  install -m755 unar lsar "$pkgdir/usr/bin/"

  cd "$srcdir/The Unarchiver/Extra"
  install -d "$pkgdir/usr/share/man/man1"
  gzip -c lsar.1 > "$pkgdir/usr/share/man/man1"/lsar.1.gz
  gzip -c unar.1 > "$pkgdir/usr/share/man/man1"/unar.1.gz
}

# vim:set ts=2 sw=2 et:
sha256sums=('40967014a505b7a27864c49dc3b5d30b98ae4e6d4873783b2ef9ef9215fd092b'
            '90513ae4c949cc4b842b92d229d8f87d953632cd9b9c289bc550771a9cebd07d')