summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3834aab86e3f9ebf7ce635351b84722a955f296d (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
# Maintainer: duffydack <duffydack73 {at] gmail {dot} com>
pkgname=ufetch-git
_pkgname=ufetch
pkgver=r153.9831ec2
pkgrel=1
epoch=1
pkgdesc="Info script for minimal *nix systems."
arch=('any')
url="https://gitlab.com/jschx/${_pkgname}"
license=('ISC')
provides=($_pkgname)
conflicts=($_pkgname)
makedepends=('git')
source=("git+https://gitlab.com/jschx/ufetch.git")
md5sums=('SKIP')

pkgver() {
  cd $_pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd $_pkgname
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/ufetch-git/LICENSE"
  install -D -m755 ufetch-arch "$pkgdir/usr/bin/$_pkgname"
}