Skip to content

Commit

Permalink
New package: lemmy-0.18.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TinfoilSubmarine committed Jul 28, 2023
1 parent dc2c5f1 commit 78baca2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
6 changes: 6 additions & 0 deletions srcpkgs/lemmy/files/lemmy/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
export LEMMY_CONFIG_LOCATION=${LEMMY_CONFIG_LOCATION:-/etc/lemmy/lemmy.hjson}
cd /var/lib/lemmy || exit 1
exec chpst -u _lemmy:_lemmy lemmy_server
40 changes: 40 additions & 0 deletions srcpkgs/lemmy/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Template file for 'lemmy'
pkgname=lemmy
version=0.18.3
revision=1
_translation_commit=153351ad2f2fbd03ca4c0b353a84f9d622a5ab91
build_style=cargo
configure_args="--features=embed-pictrs"
hostmakedepends="pkg-config protobuf"
makedepends="openssl-devel libpqxx-devel libzstd-devel"
depends="ImageMagick ffmpeg exiftool"
short_desc="Link aggregator and forum for the fediverse"
maintainer="Joel Beckmeyer <[email protected]>"
license="AGPL-3.0-only"
homepage="https://join-lemmy.org/"
changelog="https://raw.githubusercontent.com/LemmyNet/lemmy/main/RELEASES.md"
distfiles="https://github.com/LemmyNet/lemmy/archive/refs/tags/${version}.tar.gz
https://github.com/LemmyNet/lemmy-translations/archive/${_translation_commit}.tar.gz"
checksum="cc649b92390c86a95de625912f8515b09e3c0579df8c5bf5d0d8e02109783ecf
a91bc15aeb47d6612f7a73249c51f2bb8658f0ab460184e36a179ac1f02bcc6b"
system_accounts="_lemmy"
make_dirs="/var/lib/lemmy 0700 _lemmy _lemmy"
_lemmy_homedir="/var/lib/lemmy"
conf_files="/etc/lemmy/lemmy.hjson"

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

post_patch() {
vsed -i "s/unknown version/$version/" crates/utils/src/version.rs
}

post_install() {
vsconf config/defaults.hjson
vinstall config/config.hjson 644 etc/lemmy lemmy.hjson
vsv lemmy
vlicense LICENSE
}

0 comments on commit 78baca2

Please sign in to comment.