blob: 56a2422e534cfa308ef883381e8f5394d9135d83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Atthun Seeran R.A. <idkatthun@gmail.com>
pkgname=microfetch
pkgbase=microfetch-arch-linux
pkgver=1.0.0
pkgrel=1
pkgdesc='Minimalist system fetch tool for Arch Linux'
url='https://github.com/Atthun/microfetch-arch-linux'
arch=('x86_64')
license=('GPL3')
depends=()
makedepends=('cargo')
source=("git+https://github.com/Atthun/microfetch-arch-linux.git#branch=main")
sha256sums=('SKIP')
prepare() {
cd "$srcdir/microfetch-arch-linux"
cargo fetch --locked --target "$(rustc -vV | sed -n 's|host: ||p')"
}
build() {
cd "$srcdir/microfetch-arch-linux"
cargo build --release --target-dir target
}
package() {
cd "$srcdir/microfetch-arch-linux"
install -Dm755 target/release/microfetch "$pkgdir/usr/bin/microfetch"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|