24 lines
694 B
Bash
24 lines
694 B
Bash
|
TERMUX_PKG_HOMEPAGE=https://git.sr.ht/~emersion/soju
|
||
|
TERMUX_PKG_DESCRIPTION="A user-friendly IRC bouncer"
|
||
|
TERMUX_PKG_LICENSE="AGPL-V3"
|
||
|
TERMUX_PKG_MAINTAINER="@termux"
|
||
|
TERMUX_PKG_VERSION=0.4.0
|
||
|
TERMUX_PKG_SRCURL=https://git.sr.ht/~emersion/soju/refs/download/v${TERMUX_PKG_VERSION}/soju-${TERMUX_PKG_VERSION}.tar.gz
|
||
|
TERMUX_PKG_SHA256=91a78d8f038fb3319042961ff38d9a54a9bf897942804c0a690628dc6c959118
|
||
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||
|
TERMUX_PKG_EXTRA_MAKE_ARGS="PREFIX=$TERMUX_PREFIX"
|
||
|
|
||
|
termux_step_pre_configure() {
|
||
|
termux_setup_golang
|
||
|
|
||
|
go mod init || :
|
||
|
go mod tidy
|
||
|
}
|
||
|
|
||
|
termux_step_create_debscripts() {
|
||
|
cat <<- EOF > ./postinst
|
||
|
#!$TERMUX_PREFIX/bin/sh
|
||
|
mkdir -p $TERMUX_PREFIX/var/lib/soju
|
||
|
EOF
|
||
|
}
|