mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-11 11:41:59 +01:00
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# Contributor: Edd Salkield <edd@salkield.uk>
|
|
# Maintainer: Edd Salkield <edd@salkield.uk>
|
|
pkgname=timewarrior
|
|
pkgver=1.6.0
|
|
pkgrel=0
|
|
pkgdesc="command line time tracking and reporting"
|
|
url="https://timewarrior.net"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="cmake asciidoctor samurai"
|
|
checkdepends="py3-dateutil mandoc"
|
|
subpackages="$pkgname-doc"
|
|
source="timewarrior-v$pkgver.tar.gz::https://github.com/GothenburgBitFactory/timewarrior/releases/download/v$pkgver/timew-$pkgver.tar.gz"
|
|
builddir="$srcdir/timew-$pkgver"
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
ninja -C build test
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
# install the refresh holiday scripts in /usr/bin/ for user convenience
|
|
chmod 755 "$pkgdir/usr/share/doc/timew/holidays/refresh"
|
|
ln -s /usr/share/doc/timew/holidays/refresh "$pkgdir/usr/bin/timew-refresh-holidays"
|
|
|
|
# remove useless man pages
|
|
rm -r "$pkgdir"/usr/share/man/
|
|
}
|
|
|
|
sha512sums="
|
|
8b2d80787a69a2079c457b3fe542ba7904d406352790b11170bc78758613f127fff3695a8b1d1c5799115235652f835a3f39196aedf957fa726c00cee7c4f17d timewarrior-v1.6.0.tar.gz
|
|
"
|