termux-packages/packages/aerc/build.sh
2021-07-04 22:03:33 +05:30

24 lines
708 B
Bash

TERMUX_PKG_HOMEPAGE=https://aerc-mail.org/
TERMUX_PKG_DESCRIPTION="An email client that runs in your terminal"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.5.2
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://git.sr.ht/~sircmpwn/aerc/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=dec6560c1359d1d56124a85692e877e319036f0312ce9b7a31f9828f99b92c61
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
termux_setup_golang
if $TERMUX_ON_DEVICE_BUILD; then
export GOPATH=$TERMUX_PKG_SRCDIR/go
if [ -d $TERMUX_PKG_CACHEDIR/go ]; then
cp $TERMUX_PKG_CACHEDIR/go $GOPATH -r
else
go get
cp $TERMUX_PKG_SRCDIR/go $TERMUX_PKG_CACHEDIR/go -r
fi
fi
}