blob: e978e75abe910f3ff6652b30c7ac763c131ac0bc (
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
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Lan Phan <phan.ngoclan58[at]gmail[dot]com>
pkgname=taskflow-git
pkgver=r53.b21cc7c
pkgrel=4
pkgdesc="Simple resource-aware task scheduler"
arch=('x86_64')
url="https://github.com/lanPN85/taskflow"
license=('GPL3')
groups=()
depends=('zlib')
makedepends=('git' 'python-virtualenv' 'binutils')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install='install.sh'
source=('git+https://github.com/lanPN85/taskflow#tag=0.3.1')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/taskflow"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/taskflow"
}
build() {
cd "$srcdir/taskflow"
test -f "venv" || virtualenv venv/
. venv/bin/activate
pip install -r requirements.txt
pip install -r requirements.dev.txt
make build
}
check() {
cd "$srcdir/taskflow"
}
package() {
cd "$srcdir/taskflow"
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir/usr/lib/systemd/system"
cp etc/taskflowd.service "$pkgdir/usr/lib/systemd/system/taskflowd.service"
}
|