Skip to content

Commit

Permalink
New package: lemmy-ui-0.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TinfoilSubmarine committed Jul 21, 2023
1 parent 0d1a071 commit a3072d4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
5 changes: 5 additions & 0 deletions srcpkgs/lemmy-ui/files/lemmy-ui/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
cd /usr/lib/lemmy-ui || exit 1
exec chpst -u _lemmyui:_lemmyui node dist/js/server.js
42 changes: 42 additions & 0 deletions srcpkgs/lemmy-ui/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Template file for 'lemmy-ui'
pkgname=lemmy-ui
version=0.18.2
revision=1
_translation_commit=3638cde3b3d59a969872d5f8e65f80faa9d3ab1c
hostmakedepends="yarn pkg-config"
makedepends="libvips-devel"
depends="nodejs"
short_desc="Official web app for lemmy"
maintainer="Joel Beckmeyer <[email protected]>"
license="AGPL-3.0-only"
homepage="https://join-lemmy.org/"
distfiles="https://github.com/LemmyNet/lemmy-ui/archive/refs/tags/${version}.tar.gz
https://github.com/LemmyNet/lemmy-translations/archive/${_translation_commit}.tar.gz"
checksum="ffadc85c71248379670943eecd6102d99b732425009c54ebad74c6559b9787bb
170e9526be77fb6370aa76ce86f9f96a7c08460da91304518c047e819a1d26ab"
python_version=3
system_accounts="_lemmyui"

post_extract() {
cp -r lemmy-ui-${version}/. .
cp -r lemmy-translations-${_translation_commit}/. lemmy-translations
rm -rf lemmy-${version} lemmy-translations-${_translation_commit}

yarn install --pure-lockfile
}

post_patch() {
vsed -i "s/unknown version/$version/" src/shared/version.ts
}

do_build() {
yarn build:prod
}

do_install() {
vmkdir usr/lib/lemmy-ui
vcopy dist usr/lib/lemmy-ui
vcopy node_modules usr/lib/lemmy-ui
vlicense LICENSE
vsv lemmy-ui
}

0 comments on commit a3072d4

Please sign in to comment.