summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4167fe7b570c665eec81306a0a0dd6d2205acebf (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
29
30
# Maintainer: gabrielzschmitz <gabrielzschmitz@protonmail.com>
pkgname='tomato.c-git'
pkgver=r241.a758f48
pkgrel=1
pkgdesc="A pomodoro timer written in pure C"
arch=('x86_64')
url="https://github.com/gabrielzschmitz/Tomato.C.git"
license=('GPL3')
depends=('libnotify' 'mpv')
makedepends=('gcc' 'ncurses' 'pkgconf' 'git')
provides=('tomato')
conflict=('tomato')
source=("git+$url")
md5sums=('SKIP')

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

build() {
    cd Tomato.C
    make
}

package() {
    cd Tomato.C
    make PREFIX=/usr/local DESTDIR="$pkgdir" install
}