summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0fbe31bf33407ac3006e62e023f9d8dd0859289d (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
# Maintainer: Eduard Gabriel (lexofficial29@protonmail.com)

pkgname=lexspec-git
_srcname=lexspec
provides=('lexspec')
conflicts=('lexspec')
pkgver=r10.5ac67ac
pkgrel=1
pkgdesc="Get system information in linux"
arch=('any')
url="https://github.com/lexofficial29/lexspec"
license=('GPLv2')
source=("git+https://github.com/lexofficial29/lexspec")
md5sums=('SKIP')

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

package() {
  cd "$pkgdir"
  install -Dm644 "$srcdir"/"$_srcname"/lspec usr/bin/lspec
  chmod +x usr/bin/lspec
}