Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Commit d81f2f8

Browse files
committed
📦 Add AUR package files
- Add PKGBUILD for Arch Linux distribution - Add .SRCINFO for AUR submission - Ready for AUR package submission
1 parent 2702023 commit d81f2f8

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.SRCINFO

Whitespace-only changes.

PKGBUILD

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Maintainer: dddevid <[email protected]>
2+
pkgname=rfetch
3+
pkgver=1.0.0
4+
pkgrel=1
5+
pkgdesc="A fast, customizable system information tool written in Rust with full iOS support"
6+
arch=('x86_64' 'aarch64')
7+
url="https://github.com/dddevid/rFetch"
8+
license=('MIT')
9+
depends=()
10+
makedepends=('rust' 'cargo')
11+
source=("$pkgname-$pkgver.tar.gz::https://github.com/dddevid/rFetch/archive/v$pkgver.tar.gz")
12+
sha256sums=('SKIP')
13+
14+
build() {
15+
cd "$srcdir/rFetch-$pkgver"
16+
cargo build --release --locked
17+
}
18+
19+
check() {
20+
cd "$srcdir/rFetch-$pkgver"
21+
cargo test --release --locked
22+
}
23+
24+
package() {
25+
cd "$srcdir/rFetch-$pkgver"
26+
27+
# Install binary
28+
install -Dm755 "target/release/rfetch" "$pkgdir/usr/bin/rfetch"
29+
30+
# Install license
31+
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
32+
33+
# Install documentation
34+
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
35+
36+
# Install example config
37+
install -Dm644 "config.example.toml" "$pkgdir/usr/share/doc/$pkgname/config.example.toml"
38+
39+
# Install theme creator
40+
install -dm755 "$pkgdir/usr/share/$pkgname/theme-creator"
41+
cp -r theme-creator/* "$pkgdir/usr/share/$pkgname/theme-creator/"
42+
}

0 commit comments

Comments
 (0)