summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 119d5570a3372e7413efff65ee6368ad230939b4 (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

# Maintainer: Julia <julia AT insertdomain DOT name>
# Maintainer: Cristian <cristian@crstian.me>

pkgname="freshfetch"
pkgver=0.2.0
pkgrel=2
pkgdesc="A fresh take on Neofetch"
arch=('any')
url="https://github.com/K4rakara/freshfetch"
license=('MIT')
depends=()
makedepends=('cargo' 'luajit' 'git')
optdepends=('xorg-xrandr' 'xorg-xwininfo')
provides=('freshfetch')
conflicts=('freshfetch-git' 'freshfetch-bin')
source=('git+https://github.com/K4rakara/freshfetch.git'
		"https://raw.githubusercontent.com/K4rakara/${pkgname//-git}/master/LICENSE.md")
md5sums=('SKIP'
         'a4c191c500e67564935777e1abaebbab')

build() {
  cd $srcdir/freshfetch/;
  git checkout "${pkgver}";
  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;
}