summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb03659bfb1813baeb7b3940271fd562c8b76418 (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: zeroproject <contact@zeroproject.dev>
pkgname=zomodoro
pkgver=2.0.0.r3.g2801f96
pkgrel=1
pkgdesc="Simple pomodoro made in Qt"
arch=('x86_64')
url="https://github.com/zeroproject-dev/zomodoro"
license=('MIT')
depends=('qt5-base')
makedepends=('git' 'make' 'qt5-tools')
source=('zomodoro::git+http://github.com/zeroproject-dev/zomodoro.git')
md5sums=('SKIP')

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

build() {
	cd "$pkgname"
	qmake ./Zomodoro.pro
	make
}

package() {
	cd "$pkgname"
	ls -la
	install -Dm755 ./Zomodoro "$pkgdir/usr/bin/zomodoro"
	install -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname"
}