blob: 983935e2751a8e2416de772944f1824ac2093491 (
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
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Julia <julia AT insertdomain DOT name>
# Maintainer: Cristian <cristian@crstian.me>
pkgname="freshfetch-git"
pkgver=0.2.0.r7.gace04ea
pkgrel=1
pkgdesc="A fresh take on Neofetch"
arch=('any')
url="https://github.com/K4rakara/freshfetch"
license=('MIT')
depends=('luajit')
makedepends=('cargo' 'git')
optdepends=('xorg-xrandr' 'xorg-xwininfo')
provides=('freshfetch')
conflicts=('freshfetch' 'freshfetch-git')
source=('git+https://github.com/K4rakara/freshfetch.git'
"https://raw.githubusercontent.com/K4rakara/${pkgname//-git}/master/LICENSE.md")
md5sums=('SKIP'
'a4c191c500e67564935777e1abaebbab')
pkgver() {
cd $srcdir/freshfetch/;
git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g';
}
build() {
cd $srcdir/freshfetch/;
cargo build \
--release \
-vv;
}
package() {
install \
-Dm755 \
$srcdir/${pkgname//-git}/target/release/${pkgname//-git} \
$pkgdir/usr/bin/${pkgname//-git};
install \
-Dm644 \
$srcdir/LICENSE.md \
$pkgdir/usr/bin/licenses/${pkgname}/LICENSE;
}
|