Commit ec81d8e1 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play: added brew (eterbug #18290)

parent e240ba3c
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
URL="$4"
. $(dirname $0)/common.sh
erc unpack $TAR || fatal
mkdir -p usr/share/man/man1 etc/bash_completion.d usr/share/zsh/site-functions usr/share/fish/vendor_completions.d opt
mv brew* opt/$PRODUCT
VERSION=$(echo "$URL" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
[ -n "$VERSION" ] || fatal "Can't get package version"
mv opt/$PRODUCT/manpages/brew.1 usr/share/man/man1/brew.1
mv opt/$PRODUCT/completions/bash/brew etc/bash_completion.d/brew
mv opt/$PRODUCT/completions/zsh/_brew usr/share/zsh/site-functions/_brew
mv opt/$PRODUCT/completions/fish/brew.fish usr/share/fish/vendor_completions.d/brew.fish
PKGNAME=$PRODUCT-$VERSION
erc pack $PKGNAME.tar opt usr etc || fatal
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=brew
SUPPORTEDARCHES=""
VERSION="$2"
DESCRIPTION="The missing package manager for macOS (or Linux)"
URL="https://github.com/Homebrew/brew/"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then
VERSION=$(get_github_tag https://github.com/Homebrew/brew)
fi
PKGURL="https://github.com/Homebrew/brew/archive/refs/tags/$VERSION.tar.gz"
install_pack_pkgurl
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=brew
PRODUCTDIR=/opt/$PRODUCT
. $(dirname $0)/common.sh
add_bin_link_command $PRODUCT $PRODUCTDIR/bin/$PRODUCT
add_libs_requires
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment