ArchLinux/pkgbuild/unarchiver/PKGBUILD

40 lines
1.1 KiB
Bash

# Maintainer: Cedric Girard <girard.cedric@gmail.com>
# Contributor: N30N <archlinux@alunamation.com>
pkgname=unarchiver
epoch=1
pkgver=1.5
pkgrel=1
pkgdesc="An Objective-C application for uncompressing archive files"
arch=('x86_64' 'i686')
url="http://unarchiver.c3.cx/"
license=('LGPL2.1')
depends=('gnustep-base' 'openssl' 'bzip2' 'icu' 'gcc-libs' 'zlib')
makedepends=('gcc-objc')
source=("http://theunarchiver.googlecode.com/files/unar${pkgver}_src.zip"
"native_obj_exceptions.patch")
sha1sums=('972a37909ab7fde53e1561dfe0fb6a729d9d59dc'
'b8024026607dc2de758479b73d8b01ca6f692b59')
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: