惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
Vercel News
Vercel News
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
MyScale Blog
MyScale Blog
P
Proofpoint News Feed
量子位
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
博客园 - 【当耐特】
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
D
DataBreaches.Net
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
人人都是产品经理
人人都是产品经理
IT之家
IT之家
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Jina AI
Jina AI
博客园 - 三生石上(FineUI控件)

AUR Newest Packages

AUR (en) - linuxqq-clipsync-git AUR (en) - libtslitex-git AUR (en) - libtslitex-git AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - vigil-baseline AUR (en) - byedroid AUR (en) - neovim-base16-git AUR (en) - pirata AUR (en) - rpi-imager-git-non-root AUR (en) - python-fastapi-sso AUR (en) - tmux-ai-titles AUR (en) - zeed-bin AUR (en) - bclone-bin AUR (en) - dwl-git-azerty AUR (en) - auggie-bin AUR (en) - libspatialaudio-git AUR (en) - libspatialaudio AUR (en) - miniupnpd-iptables-legacy AUR (en) - miniupnpd-nft AUR (en) - jeeves-bin AUR (en) - opennow AUR (en) - rotki AUR (en) - kapi-bin AUR (en) - classfi-bin AUR (en) - classfi-git AUR (en) - classfi AUR (en) - giff-git AUR (en) - budget-tracker-bin
AUR (en) - mastodon
2026-06-03 · via AUR Newest Packages

Pinned Comments

nachtjasmin commented on 2026-06-04 15:10 (UTC)

zoltix commented on 2026-06-04 18:27 (UTC)

Thanks. Apparently this has been needed for quite a while. I’ll add libheif as a mandatory dependency in the PKGBUILD, since libvips only has it as optional on Arch and HEIC/HEIF uploads should just work.

nachtjasmin commented on 2026-06-04 15:10 (UTC)

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?