summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d81e069028b3712e2f76607754a3833e3f303eeb (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: Jack Johannesen <jack AT insertdomain DOT name>

pkgname="freshfetch-git"
pkgver=v0.1.2.r6.g093e489
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://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;
}