summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 530276c3a222b6f2d42bbbffedfb9326f794cf8b (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: Ammon Smith <ammon.i.smith@gmail.com>

pkgname="days-until-git"
pkgver=0.1.rf01b6ec
pkgrel=1
pkgdesc='A command-line program to give you the number of days until or since certain events.'
arch=('any')
url="https://gitlab.com/ammongit/${pkgname%-git}"
license=('GPL2')
depends=('python')
makedepends=('git')
optdepends=()
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
options=()
source=("git+https://gitlab.com/ammongit/${pkgname%-git}.git")
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	echo "0.1.r$(git describe --always)"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	install -D -m755 'days_until.py' "$pkgdir/usr/bin/daysuntil"
	install -D -m644 'sample_event_list.txt' "$pkgdir/usr/share/${pkgname%-git}/sample_event_list.txt"
	install -D -m644 'LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}