blob: ddddef2b6983c26557d941c698dbe5edf373155e (
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
30
31
32
|
# Maintainer: <reg-archlinux AT klein DOT tuxli DOT ch>
# Contributor: Demir Yerli <mrquantumoff@protonmail.com>
pkgname=qfetch
pkgver=0.9.1
pkgrel=2
pkgdesc="A simple fetch tool written in rust"
arch=('x86_64')
url="https://bultek.synchron.com.ua/bultekdev/software/qfetch"
license=('BSD-2-Clause')
makedepends=("rust")
provides=("${pkgname}")
conflicts=("${pkgname}-git" "${pkgname}-bin")
#source=("https://bultek.synchron.com.ua/bultekdev/software/${pkgname}/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
source=("${pkgname}-${pkgver}.tar.gz::https://crates.io/api/v1/crates/${pkgname}/${pkgver}/download")
sha256sums=('9422316216157417ee9cb89dfe8ba6cb6cc2f05004af3d674756f2b5b7d6db04')
prepare() {
cd "${pkgname}-${pkgver}"
cargo clean
}
build() {
cd "${pkgname}-${pkgver}"
cargo build --release
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd "target/release"
install -Dm755 -t "${pkgdir}/usr/bin/" qfetch
}
|