Skip to content

Commit

Permalink
addpkg(main/seanime): 2.1.1 (#21415)
Browse files Browse the repository at this point in the history
Co-authored-by: aicynide <[email protected]>
  • Loading branch information
aicynide committed Sep 11, 2024
1 parent f7ef965 commit c66a06a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions packages/seanime/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
TERMUX_PKG_HOMEPAGE=https://github.com/5rahim/seanime
TERMUX_PKG_DESCRIPTION="Self-hosted anime and manga server for sea rovers."
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.1.1"
TERMUX_PKG_SRCURL=https://github.com/5rahim/seanime/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=f3cfdf8e36d9cb2e4e5fa1e9c8bff81a4d1f3fe32c2fec848004bf02433b4833
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_HOSTBUILD=true

termux_step_host_build() {
termux_setup_nodejs

cp -r $TERMUX_PKG_SRCDIR/seanime-web ./seanime-web
cd seanime-web
npm install
npm run build
}

termux_step_pre_configure() {
mkdir $TERMUX_PKG_SRCDIR/web
cp -r $TERMUX_PKG_HOSTBUILD_DIR/seanime-web/out $TERMUX_PKG_SRCDIR/web/

termux_setup_golang
}

termux_step_make() {
go build -o seanime -trimpath -ldflags="-s -w"
}

termux_step_make_install() {
install -Dm700 -t "${TERMUX_PREFIX}"/bin "$TERMUX_PKG_SRCDIR"/seanime
}

1 comment on commit c66a06a

@fornwall
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference, the build error here will be fixed by revbumping in #21440, after bumping the host node version in #21439.

Please sign in to comment.