summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 37751e6d80065a4bb207648966863f578b9955c4 (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=r40.b78283e
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
}