2020-05-07 21:29:21 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/ericchiang/pup
|
|
|
|
TERMUX_PKG_DESCRIPTION="command line tool for processing HTML"
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
|
|
TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm"
|
|
|
|
TERMUX_PKG_VERSION=0.4.0
|
2021-05-29 13:55:26 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2020-05-07 21:29:21 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/ericchiang/pup/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=0d546ab78588e07e1601007772d83795495aa329b19bd1c3cde589ddb1c538b0
|
|
|
|
|
|
|
|
termux_step_make() {
|
2020-05-09 13:09:43 +02:00
|
|
|
termux_setup_golang
|
2020-05-07 21:29:21 +02:00
|
|
|
|
2020-05-09 13:09:43 +02:00
|
|
|
cd "$TERMUX_PKG_SRCDIR"
|
2020-05-07 21:29:21 +02:00
|
|
|
|
2020-05-09 13:09:43 +02:00
|
|
|
export GOPATH="${TERMUX_PKG_BUILDDIR}"
|
|
|
|
mkdir -p "${GOPATH}/src/github.com/ericchiang/"
|
|
|
|
cp -a "${TERMUX_PKG_SRCDIR}" "${GOPATH}/src/github.com/ericchiang/pup"
|
|
|
|
cd "${GOPATH}/src/github.com/ericchiang/pup"
|
2021-05-29 13:41:04 +02:00
|
|
|
export GO111MODULE=off
|
|
|
|
|
2020-05-09 13:09:43 +02:00
|
|
|
go get -d -v
|
|
|
|
go build
|
2020-05-07 21:29:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
2020-05-09 13:09:43 +02:00
|
|
|
install -Dm700 -t "$TERMUX_PREFIX"/bin "$GOPATH"/src/github.com/ericchiang/pup/pup
|
2020-05-07 21:29:21 +02:00
|
|
|
}
|