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

推荐订阅源

T
Tailwind CSS Blog
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
L
LangChain Blog
博客园_首页
Recent Announcements
Recent Announcements
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
博客园 - 叶小钗
博客园 - 【当耐特】
The Cloudflare Blog
J
Java Code Geeks
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans

Arch Linux Forums

Avidemux crashes without strace / Applications & Desktop Environments how to apply patches with non-linux linends / Newbie Corner Replicating CachyOS on vanilla Arch (or at least getting close) / Arch Discussion What's arch linux GUI package manager ? / Newbie Corner Hibernation failing due to insufficient memory / System Administration profiledef.sh editting question / Installation trying to script kde plasma wallpaper settings / Programming & Scripting Looking for new Audacious package maintainer / Creating & Modifying Packages issues installing arch with LUKS2 encryption / Newbie Corner QEMU PXE booting does not work with OVMF.4m.fd / Applications & Desktop Environments Wired lan regular disconnect / Newbie Corner Need Help setting up ARCH in my G16 G634JZR iwlwifi started failing consistently, trying to determine root cause Windows randomly jumping between monitors after GNOME 50 update No display via DP or HDMI after boot. / Kernel & Hardware how to change acpi platform_profile? / Newbie Corner Linux denied all kernel modules which not loaded right now Use iPhone as Webcam for Arch Linux Video Output Failure on nvidia-580xx-dkms on TTY --> Desktop switch (Page 2) / Kernel & Hardware I was going to rant ..WINE32 Sabotage compliments of Arvind Krishna / Arch Discussion [SOLVED] LUKS drive auto unlocked by TPM when expected not to / Networking, Server, and Protection Hibernate/suspend from X = dark panel; from TTY = works (ASUS G14, hyb (Page 2) / Laptop Issues Headphone jack noise/buzz / Newbie Corner segmentation fault in cc1plus when building CLK / AUR Issues, Discussion & PKGBUILD Requests Console alternative to meld / GNU/Linux Discussion Problem with paru git clone / Newbie Corner XKB questions / Applications & Desktop Environments gnome-keyring-daemon is not working correctly / Applications & Desktop Environments [SOLVED] Steam opens and immediately closes constantly / Newbie Corner Firefox rounded edges on Sway / Applications & Desktop Environments
PKGBUILD review: madbfs / Creating & Modifying Packages
Therk · 2026-06-12 · via Arch Linux Forums

#1 2026-06-11 15:01:41

Therk
Member
Registered: 2023-02-02
Posts: 8

PKGBUILD review: madbfs

For the first time in a while, I found some software I wanted that wasn't on the AUR, so I decided to write a PKGBUILD for it! I've already read the AUR submission guidelines at least twice, and as is suggested over there, I'm posting it here to get some feedback just in case it's really bad.

The package installs madbfs and a tiny wrapper script. The wrapper only makes it so madbfs is always launched with an option that circumvents a cache issue the software is currently experiencing.

# Maintainer: Muhammad Rizal Nurromdhoni <mrizaln2000 at gmail dot com>
# AUR packager: Élie Leblanc <leblancelie.moi at gmail dot com>
pkgname=madbfs-bin
pkgver=0.11.0
pkgrel=1
pkgdesc="Mount Android phones on Linux with adb (userspace filesystem for Android via adb using FUSE)"
arch=(x86_64)
url="https://github.com/mrizaln/madbfs"
license=('MIT')
depends=(android-tools)
makedepends=(chrpath)
provides=(madbfs)
source=("$url/releases/download/v$pkgver/madbfs.tar.gz"
"https://raw.githubusercontent.com/mrizaln/madbfs/refs/heads/main/LICENSE"
"https://raw.githubusercontent.com/mrizaln/madbfs/refs/heads/main/README.md")
sha256sums=('edbb40dd0c4f16edc26fe1141e44a3233238730937f16fb14bb1d7b4cbf4ae6f'
'd68068da79f0c8225b909483230ec9b5bf79b50cef70fc5720509d60ec9d3cc1'    
'8c415279df95517f4660721d7a667bda7fc6e8823c67792f34f6edc00092224a')

package(){
	chrpath -d "${srcdir}/madbfs/madbfs"
	echo -e "#!/bin/sh\n/usr/bin/madbfs-bin --no-cache \$@" > "${srcdir}/madbfs/madbfs-wrapper-script"
	install -Dm755 "${srcdir}/madbfs/madbfs" "${pkgdir}/usr/bin/madbfs-bin"
	install -Dm755 "${srcdir}/madbfs/madbfs-wrapper-script" "${pkgdir}/usr/bin/madbfs"
	install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/madbfs-bin/MIT.txt"
	install -Dm644 "${srcdir}/README.md" "${pkgdir}/usr/share/doc/madbfs/README.md"
}

How'd I do?

Also, AUR account registration seems to be broken currently? I can't access the page u

Last edited by Therk (2026-06-11 17:49:33)

#2 2026-06-11 16:13:11

yochananmarqos
Member
Registered: 2020-02-05
Posts: 222

Re: PKGBUILD review: madbfs

It should both provide and conflict with madbfs. Looks like there may be more dependencies required like libfuse2 or libfuse3.

AUR registrations may be disabled at the moment due to the flood of malicious AUR package updates in the last hour or two.

Last edited by yochananmarqos (2026-06-11 16:18:27)

#3 2026-06-11 17:57:56

Therk
Member
Registered: 2023-02-02
Posts: 8

Re: PKGBUILD review: madbfs

The libraries are statically linked in the binary, so libfuse is a dependency, but only if you build from source. I'd like to get a version of the package that builds from source, but for that I'd need to package some C++ dependencies that aren't in the AUR at the moment.

A flood of malicious packages seems like a good reason to temporarily block registration lol.

#4 2026-06-12 10:15:23

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,083

Re: PKGBUILD review: madbfs

# Maintainer: Muhammad Rizal Nurromdhoni <mrizaln2000 at gmail dot com>
# AUR packager: Élie Leblanc <leblancelie.moi at gmail dot com>

I guess leblanc is you and you want to include the name of the creator of the software ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

#5 2026-06-12 19:09:51

Therk
Member
Registered: 2023-02-02
Posts: 8

Re: PKGBUILD review: madbfs

Exactly, I've been in contact with the actual developer over the last few days, but I want people to be able to write to me if there's an issue with the PKGBUILD.

#6 2026-06-12 20:37:57

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,083

Re: PKGBUILD review: madbfs

Then I suggest to change those 2 lines to something like this :

# AUR Maintainer: Élie Leblanc <leblancelie.moi at gmail dot com>
# Contributor and Author of madbfs Muhammad Rizal Nurromdhoni <mrizaln2000 at gmail dot com>

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

#7 Today 18:06:08

Therk
Member
Registered: 2023-02-02
Posts: 8

Re: PKGBUILD review: madbfs

That actually makes more sense to me, will do!