blob: 50b77342a030b86ba4135d947c6a7b06e4c10801 (
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
34
35
36
37
38
39
|
# Maintainer: Georgiy Komarov <jubnzv@gmail.com>
pkgname=qtask-git
pkgver=0.1
pkgrel=1
pkgdesc="An open-source organizer based on Taskwarrior"
arch=(x86_64 aarch64)
url="https://github.com/jubnzv/qtask"
license=('MIT')
depends=('task')
makedepends=('cmake' 'extra-cmake-modules' 'git' 'make' 'qt5-base')
source=("${pkgname}::git+https://github.com/jubnzv/qtask.git")
sha512sums=('SKIP')
provides=('qtask')
conflicts=('qtask')
options=(!strip)
prepare() {
cd "$srcdir/$pkgname"
git submodule update --init --recursive
}
build() {
_cpuCount=$(grep -c -w ^processor /proc/cpuinfo)
cmake -S"${pkgname}" -Bbuild \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build --parallel $_cpuCount
}
package() {
cd "${srcdir}/build"
DESTDIR="${pkgdir}" cmake --build . --target install
cd "${srcdir}/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|