summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6568aeda2e2d1b3691740ae22fd44c1a9119a286 (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
# Maintainer: Pablo Arias <pabloariasal@gmail.com>
# Contributor: John Jenkins <twodopeshaggy@gmail.com>

pkgname=bcal-git
_pkgname=bcal
pkgver=1.8.r5.g0fde1c6
pkgrel=1
pkgdesc="Storage conversion and expression calculator"
arch=("i686" "x86_64")
url="https://github.com/jarun/bcal"
license=('GPL3')
source=("git+https://github.com/jarun/${_pkgname}.git")
sha256sums=('SKIP')
conflicts=('bcal')
provides=('bcal')

pkgver() {
   cd "${srcdir}/${_pkgname}"
   git describe --long | sed 's/v\([^-]*-\)/\1r/;s/-/./g'
}

package() {
  make -C "${srcdir}/${_pkgname}" DESTDIR="${pkgdir}" PREFIX="/usr" install
}