summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b93442f91959abee1defc52315e160a57f13ef4 (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
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>

_pkgname='bashbc'
pkgname="${_pkgname}-git"
pkgver=r3.ec9133d
pkgrel=1
pkgdesc='Command-line calculator in pure BASH'
arch=('any')
url='https://github.com/bluebat/.bash'
license=('GPL')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')

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

package() {
  install -Dm755 "${_pkgname}/${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}"
}

# vim: ts=2 sw=2 et: