51 lines
2.2 KiB
Bash
51 lines
2.2 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=unar
|
|
pkgver=1.10.7
|
|
_UniversalDetector_pkgver=1.1
|
|
pkgrel=1
|
|
pkgdesc="An Objective-C application for uncompressing archive files"
|
|
arch=('i686' 'x86_64')
|
|
url='https://github.com/MacPaw/XADMaster'
|
|
license=('LGPL-2.1')
|
|
depends=('gnustep-base' 'libressl' 'bzip2' 'icu' 'gcc-libs' 'zlib' 'wavpack')
|
|
makedepends=('gnustep-make' 'gcc-objc')
|
|
replaces=('unarchiver' 'unrar')
|
|
conflicts=('unarchiver' 'unrar')
|
|
provides=('unarchiver' 'unrar')
|
|
source=("XADMaster-${pkgver}.tar.gz::https://github.com/MacPaw/XADMaster/archive/v${pkgver}.tar.gz"
|
|
"UniversalDetector-${_UniversalDetector_pkgver}.tar.gz::https://github.com/MacPaw/universal-detector/archive/${_UniversalDetector_pkgver}.tar.gz"
|
|
"native_obj_exceptions.patch")
|
|
sha512sums=('3447b6d8f3f4fa5eea93c6628a1633017da6ff09c580d5ce4fd422027b3b79acbf38d6e41a059806d1e60eb25a9d66889938b32599168dc2c0ca648e1c1976b1'
|
|
'e514670b3d37b2472ed3e9cb0fdc3298a8479772264b7573411f104be554222bec2e01f73e1f35db95620fe785bee2dcf9ddc9c2b1f4ff6b522fa64d14d020f5'
|
|
'0501698400c7529467c5c5988aec66b0af6995274df91b312d21f2a651a7ea081efa255c53467cb95cf225ae8c3374ddad978cb447c39b221333a7aa9326b2a2')
|
|
|
|
prepare() {
|
|
# The project requires UniversalDetector next to the source dir. See the project's README for more info about the build requirements.
|
|
ln -s universal-detector-${_UniversalDetector_pkgver} UniversalDetector
|
|
|
|
cd "$srcdir/XADMaster-${pkgver}"
|
|
patch < $srcdir/native_obj_exceptions.patch
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/XADMaster-${pkgver}"
|
|
|
|
. /usr/share/GNUstep/Makefiles/GNUstep.sh
|
|
make -f Makefile.linux
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/XADMaster-${pkgver}"
|
|
|
|
install -d "$pkgdir/usr/bin/"
|
|
install -m755 unar lsar "$pkgdir/usr/bin/"
|
|
install -Dm644 "$srcdir/XADMaster-${pkgver}/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
install -d "$pkgdir/usr/share/man/man1"
|
|
install -m644 Extra/{lsar.1,unar.1} "$pkgdir/usr/share/man/man1/"
|
|
install -d "$pkgdir/usr/share/bash-completion/completions/"
|
|
install -m644 Extra/unar.bash_completion "$pkgdir/usr/share/bash-completion/completions/unar"
|
|
install -m644 Extra/lsar.bash_completion "$pkgdir/usr/share/bash-completion/completions/lsar"
|
|
}
|