summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc8d373dddf5bf72c0fc7d880e49c905fc786668 (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
27
28
# Maintainer: Otto Ahoniemi <otto@ottoahoniemi.fi>

pkgname=kanttiinit-git
dest=cli
pkgver=v0.0.3.r13.g7600b66
pkgrel=1
pkgdesc="Command-line interface for Kanttiinit, a Finnish student restaurant
menu tool (git)"
arch=('any')
url="https://github.com/Kanttiinit/cli"
makedepends=('gcc' 'make' 'git')
source=(git+$url)
md5sums=('SKIP')

build() {
    cd $dest
    make
}

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

package() {
    cd $dest
    install -D kanttiinit -t "$pkgdir"/usr/bin
}