summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40ad8d6429747bf74d048b503df2e67d3fc98ae1 (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: Muhammad Zaky Ramadhan <mzakyr42@gmail.com>

pkgbase=osfetch-sh-git
pkgname=osfetch-sh-git
_pkgname=osfetch-sh
pkgver=r17.ec5682d
pkgrel=1
pkgdesc="osfetch-sh is a stupid system fetch program written in bash for linux."
arch=('any')
url="https://github.com/mzakyr12/${_pkgname}"
license=('MIT')
makedepends=('git')
source=("git+https://github.com/mzakyr12/${_pkgname}.git")
sha512sums=('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/osfetch-sh-git/LICENSE"
  install -D -m755 $_pkgname "$pkgdir/usr/bin/$_pkgname"
}