summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0cac119b42658d40cc380b3a581d80dd8ba5ff85 (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
# Package Maintainer: Mia Furze <46620osu@gmail.com>

pkgname='ponyfetch-git'
pkgver=releases.r10.gef2a1d1
pkgrel=1
pkgdesc='Just a simple cross-platform neofetch for all the bronies out there.'
arch=('any')
url="https://github.com/Atsukoro1/ponyfetch"
provides=('ponyfetch')
conflicts=('ponyfetch')
depends=('rust'
         'inetutils'
	 'xorg-xrandr'
)
license=('GPL2')
source=("$pkgname::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}

build() {
    cd "$pkgname"
    cargo build --release
}

package() {
    cd "$pkgname"
    install -D -m755 "target/release/ponyfetch" "${pkgdir}/usr/bin/ponyfetch"
}