mimebind

LOW
maintainer sachesi 0 votes scanned 2026-09-18 19:28:54.129711
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: sachesi <xsachesi@pm.me>
2
3# pkgver and sha256sums are filled in by .github/workflows/aur.yml for each release.
4pkgname=mimebind
5pkgver=0.2.0
6pkgrel=1
7pkgdesc='Choose which application opens which file type'
8arch=('x86_64' 'aarch64')
9url='https://github.com/sachesi/mimebind'
10license=('GPL-3.0-or-later')
11depends=('gtk4>=1:4.12' 'libadwaita>=1:1.5' 'glib2' 'shared-mime-info' 'hicolor-icon-theme'
12 'libgcc' 'glibc')
13makedepends=('cargo' 'blueprint-compiler' 'just' 'gettext')
14source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
15sha256sums=('08040147b034b1b941acf0c9cf4eabff46bd9356fb380a35d9a4705a8d738401')
16
17prepare() {
18 cd "$pkgname-$pkgver"
19 export RUSTUP_TOOLCHAIN=stable
20 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
21}
22
23build() {
24 cd "$pkgname-$pkgver"
25 export RUSTUP_TOOLCHAIN=stable
26 export CARGO_TARGET_DIR=target
27 export MIMEBIND_LOCALEDIR=/usr/share/locale
28 cargo build --frozen --release
29}
30
31check() {
32 cd "$pkgname-$pkgver"
33 export RUSTUP_TOOLCHAIN=stable
34 export CARGO_TARGET_DIR=target
35 # association_round_trips needs an installed application that declares a MIME type,
36 # which a clean build root does not have.
37 cargo test --frozen -- --skip catalog::tests::association_round_trips
38}
39
40package() {
41 cd "$pkgname-$pkgver"
42 DESTDIR="$pkgdir" just prefix=/usr install
43 # The install recipe refreshes the caches even when staged; pacman's hooks own them.
44 rm -f "$pkgdir/usr/share/applications/mimeinfo.cache" \
45 "$pkgdir/usr/share/icons/hicolor/icon-theme.cache"
46}
47

Scan history

Scanned at (UTC)SeverityRules
2026-09-18 19:28:54 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion