Package Details: mastodon 4.5.10-2

Git Clone URL: https://aur.archlinux.org/mastodon.git (read-only, click to copy)
Package Base: mastodon
Description: Your self-hosted, globally interconnected microblogging community
Upstream URL: https://github.com/mastodon/mastodon
Keywords: activitypub fediverse mastodon server
Licenses: AGPL3
Submitter: flacks
Maintainer: zoltix
Last Packager: zoltix
Votes: 27
Popularity: 0.51
First Submitted: 2018-06-19 19:35 (UTC)
Last Updated: 2026-05-20 17:13 (UTC)

Latest Comments

1 2 3 4 5 6 .. 13 Next › Last »

zoltix commented on 2026-05-11 16:00 (UTC)

I have temporarily taken over the maintenance of this package, as there did not seem to be anyone else available to do it at the moment.

This is my first time maintaining an AUR package, so I may still make some mistakes. I have followed the documentation and the packaging guidelines as carefully as possible, and I am doing my best.

If you notice anything wrong, or if you have any advice or suggestions, please feel free to let me know. Any constructive help would be very welcome.

zoltix commented on 2026-05-10 07:33 (UTC)

I did it. It will be temporary.

ugjka commented on 2026-05-08 12:08 (UTC)

Can you make an orphan request and become a maintainer

zoltix commented on 2026-05-08 09:47 (UTC)

Hello, nothing has changed, so I created my own process to update it from this PKGBUILD.

# ============================================================
# Create and use a local Arch Linux repository
# ============================================================
# ------------------------------------------------------------
# Variables
# ------------------------------------------------------------

REPO_DIR="/srv/repo-local"
REPO_NAME="repo-local"
PACKAGE_SOURCE_ARCHIVE="mastodon.tar.gz" # downloaded package name from  https://aur.archlinux.org/packages/mastodon click download snapshot
PACKAGE_SOURCE_DIR="mastodon"
PACKAGE_NAME="mastodon"
# ------------------------------------------------------------
# 1. Create the local repository folder
# ------------------------------------------------------------
sudo mkdir -p "$REPO_DIR"
# ------------------------------------------------------------
# 2. Enable the local repository in pacman
# ------------------------------------------------------------
# Add this section to /etc/pacman.conf if it does not already exist:
#
# [repo-local]
# SigLevel = Optional TrustAll
# Server = file:///srv/repo-local
#
# You can edit the file manually with:
#
# sudo vim /etc/pacman.conf
# ------------------------------------------------------------

if ! grep -q "^\[$REPO_NAME\]" /etc/pacman.conf; then
    echo "Adding local repository to /etc/pacman.conf..."
    sudo tee -a /etc/pacman.conf > /dev/null <<EOF
[$REPO_NAME]
SigLevel = Optional TrustAll
Server = file://$REPO_DIR
EOF
else
    echo "Local repository already exists in /etc/pacman.conf."
fi

# ------------------------------------------------------------
# 3. Synchronize pacman database
# ------------------------------------------------------------
sudo pacman -Syy
# ------------------------------------------------------------
# 4. Extract the package source archive
# download the package from https://aur.archlinux.org/packages/mastodon

# ------------------------------------------------------------
tar -xvzf "$PACKAGE_SOURCE_ARCHIVE"  # 
cd "$PACKAGE_SOURCE_DIR"
# ------------------------------------------------------------
# 5. Edit the PKGBUILD if needed
# ------------------------------------------------------------
# Use this command manually if you need to update the version:
#
# vim PKGBUILD
# ------------------------------------------------------------
#adapt version you found https://github.com/mastodon/mastodon 
# ------------------------------------------------------------
# 6. Update checksums in the PKGBUILD
# ------------------------------------------------------------
updpkgsums
# ------------------------------------------------------------
# 7. Build the package
# ------------------------------------------------------------
# -f = force rebuild, even if the package file already exists
# ------------------------------------------------------------
makepkg -f
# ------------------------------------------------------------
# 8. Copy the generated package to the local repository
# ------------------------------------------------------------
sudo cp ./*.pkg.tar.zst "$REPO_DIR/"
# ------------------------------------------------------------
# 9. Add the package to the local repository database
# ------------------------------------------------------------
cd "$REPO_DIR"
sudo repo-add "$REPO_NAME.db.tar.gz" ./*.pkg.tar.zst
# ------------------------------------------------------------
# 10. Synchronize pacman again
# ------------------------------------------------------------
sudo pacman -Syy
# ------------------------------------------------------------
# 11. Install or upgrade the package from the local repository
# ------------------------------------------------------------
sudo pacman -S "$PACKAGE_NAME"
# ------------------------------------------------------------
# Optional: directly without create local package 
# ------------------------------------------------------------
# cd mastodon
#makepkg -fsi
# -----------------------------------------------------------

PKBUILD file with pkgver=4.5.9 :

# Maintainer: Vamp898 <vamp898-aur@ikaros.space>
pkgname=mastodon
pkgver=4.5.9
pkgrel=1
pkgdesc='Your self-hosted, globally interconnected microblogging community'
arch=(any)
url=https://github.com/mastodon/mastodon
license=(AGPL3)
depends=(corepack
     ffmpeg
         git
         libidn
         libpqxx
         libvips
         libxml2
         libxslt
         libyaml
         nodejs
         postgresql
         protobuf
         ruby-bundler
         sudo
         valkey
         zlib
         yarn-berry)
backup=(etc/mastodon.conf)
install=mastodon.install
.........

ugjka commented on 2026-05-05 16:28 (UTC)

Is the new maintainer even active, or is this some squatting on the package

zoltix commented on 2026-04-12 11:09 (UTC) (edited on 2026-04-12 11:09 (UTC) by zoltix)

I updated to 4.5.8 and tested on my instance

# Maintainer: Vamp898 <vamp898-aur@ikaros.space>
pkgname=mastodon
pkgver=4.5.8
pkgrel=1
pkgdesc='Your self-hosted, globally interconnected microblogging community'
arch=(any)
url=https://github.com/mastodon/mastodon
license=(AGPL3)
depends=(corepack
     ffmpeg
         git
         libidn
         libpqxx
         libvips
         libxml2
         libxslt
         libyaml
         nodejs
         postgresql
         protobuf
         ruby-bundler
         sudo
         valkey
         zlib
         yarn-berry)
backup=(etc/mastodon.conf)
install=mastodon.install
options=(!strip)
source=(https://github.com/mastodon/mastodon/archive/v$pkgver.tar.gz
        mastodon.target
        mastodon.sysusers.d
        mastodon.tmpfiles.d
        devise_pam.patch)
sha256sums=('8d6df5fff6b320bff8e7e4cc4eabb1e621ed833ae51625b5c81101e1e291e45d'
            'e9928ced31f6490476100f02f2e158e41a076988dd7f3dff8f21d245bc2bb0ff'
            '1b67693f7de5802a34985b9ac969497fc6e6042dcae0b8abf6595b9fe15ee80e'
            '3fdd54dd1f374b7206c8beaebafdf890e74d30385f0c93f9cd99e1e4be92f8fa'
            '8415cded8d5f159623439b8ab0a87c1ac653a32f6945eebc9140195289c1ece6')
prepare() {
    cd mastodon-$pkgver
    patch -p1 < ../devise_pam.patch
}

build() {
    export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
    cd mastodon-$pkgver
    sed -i '/husky install/d' package.json # Stop husky from hijacking git hooks
    bundle config set deployment true
    bundle config without 'development test'
    bundle config with 'pam_authentication'
    # Disable LTO which breaks the C extension of the google-protobuf gem https://github.com/protocolbuffers/protobuf/issues/11935
    bundle config --local build.google-protobuf "-- --with-cflags='$(ruby -r rbconfig -e 'print RbConfig::CONFIG["CFLAGS"]' | sed -e 's/-Werror=format-security//' -e 's/-flto=auto/-fno-lto/')' --with-ldflags='$(ruby -r rbconfig -e 'print RbConfig::CONFIG["LDFLAGS"]' | sed -e 's/-flto=auto/-fno-lto/')'"
    bundle config set frozen false
    bundle add erb
    BUNDLE_BUILD__CHARLOCK_HOLMES="--with-cxxflags=-std=c++17" bundle install -j$(getconf _NPROCESSORS_ONLN)
    corepack enable --install-directory . yarn
    ./yarn install --immutable
    # https://aur.archlinux.org/packages/mastodon?O=0#comment-986425
    cd vendor/bundle/ruby/*/gems/ox-*/ext/ox
    make
    cp ox.so ../../lib
}

package() {
    install -d "$pkgdir"/{var/lib,etc}
    cp -a mastodon-$pkgver "$pkgdir"/var/lib/mastodon

     # Put the config file in /etc and link to it
    touch "$pkgdir"/etc/mastodon.conf
    ln -s /etc/mastodon.conf "$pkgdir"/var/lib/mastodon/.env.production
    ln -s /usr/bin/node "$pkgdir"/var/lib/mastodon/node

    install -Dm 644 mastodon.target -t "$pkgdir"/usr/lib/systemd/system
    install -Dm 644 mastodon.sysusers.d "$pkgdir"/usr/lib/sysusers.d/mastodon.conf
    install -Dm 644 mastodon.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/mastodon.conf

    cd mastodon-$pkgver/dist

    # Fix path discrepancies
    sed -e 's/home\/mastodon\/live/var\/lib\/mastodon/g' -e 's/home\/mastodon\/.rbenv\/shims/usr\/bin/' -i mastodon-*.service
    sed -e 's/home\/mastodon\/live/var\/lib\/mastodon/g' -i nginx.conf

    install -Dm 644 mastodon-*.service -t "$pkgdir"/usr/lib/systemd/system
}

Vamp898 commented on 2026-02-24 15:18 (UTC)

As i migrated to GoToSocial, i am no longer using Mastodon, hence testing this package. So i gave up maintainership.

darkfm commented on 2025-11-09 23:58 (UTC)

Missing dependency on corepack:

/home/kouta/.cache/rua/build/mastodon/PKGBUILD: línea 62: corepack: orden no encontrada

Maybe was transitive dependency and is no longer depended on by some of the packages?

Vamp898 commented on 2025-07-17 09:15 (UTC)

All right, i'll continue, i don't want to see this abandoned. I am working on the 4.4 Package right now, PLEASE!, read the post install instructions when you install it. I am not kidding. This needs manual intervention, you have to do this. The upgrade is coming today

ruscur commented on 2025-07-16 04:26 (UTC)

Thanks for your all your efforts, hopefully someone keeps it going