33 lines
1011 B
Bash
33 lines
1011 B
Bash
# Template file for 'unar'
|
|
pkgname=unar
|
|
version=1.10.1
|
|
revision=1
|
|
archs="~*-musl" # regexec incompatible
|
|
wrksrc="kosovan-theunarchiver-1534a5cf6900"
|
|
build_wrksrc="XADMaster"
|
|
build_style=gnu-makefile
|
|
make_use_env="yes"
|
|
make_cmd="make -f Makefile.linux"
|
|
hostmakedepends="gcc-objc"
|
|
makedepends="gnustep-base-devel bzip2-devel"
|
|
short_desc="Unarchiver for a variety of file formats"
|
|
maintainer="Robert Lowry <bobertlo@gmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://theunarchiver.com/command-line"
|
|
distfiles="https://bitbucket.org/kosovan/theunarchiver/get/unar-${version}.tar.bz2"
|
|
checksum=0900c3dea4744f34c8396e689d7cf5a6cf00cab3fa066347755657866e6f5d59
|
|
nocross="objc doesn't get cross build at present within gcc (as seen in gnustep)"
|
|
|
|
post_extract() {
|
|
vsed -i -e '/-D_NATIVE_OBJC_EXCEPTIONS/d' ${wrksrc}/*/Makefile.linux
|
|
}
|
|
|
|
do_install() {
|
|
|
|
for x in unar lsar; do
|
|
vbin "$x"
|
|
vman "${wrksrc}/Extra/${x}.1"
|
|
vinstall "${wrksrc}/Extra/${x}.bash_completion" 644 usr/share/bash-completions "$x"
|
|
done
|
|
}
|