summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd521dc2ad1bdf3cdb0ca140a9b50c3e866777a3 (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
31
32
33
# Contributor: Beshr Ghalil <bshrghalil@gmail.com>

pkgname=todome-git
_pkgname=todome
pkgver=r44.9892972
pkgrel=1
epoch=1
pkgdesc="Language agnostic tool that collects TODOs, FIXMEs ,BUGs, NOTEs and DONEs in the source code."
arch=('x86_64' 'i686')
url="https://www.github.com/BishrGhalil/todome.git"
license=('GPL-2.0-or-later')
depends=('pcre')
makedepends=('git')
provides=('todome')
conflicts=('todome')
source=("git+$url")
md5sums=('SKIP')

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

build() {
	cd "$_pkgname"
	make -C src
}

package() {
	cd "$_pkgname"
	install -Dm755 src/todome -t "${pkgdir}/usr/bin"
	install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}