summaryrefslogtreecommitdiff
path: root/testing/taskcafe/APKBUILD
blob: 3847c661c00503f5c4aae9b8a9cf7326c8b41075 (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
52
53
54
55
56
# Contributor: Kay Thomas <kaythomas@pm.me>
# Maintainer: Kay Thomas <kaythomas@pm.me>
pkgname=taskcafe
pkgver=0.3.2
pkgrel=8
pkgdesc="Project management tool with Kanban boards"
url="https://github.com/JordanKnott/taskcafe"
arch="all !riscv64" # blocked by nodejs
license="MIT"
makedepends="go mage nodejs-current yarn"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc"
pkgusers="taskcafe"
pkggroups="taskcafe"
source="$pkgname-$pkgver.tar.gz::https://github.com/JordanKnott/taskcafe/archive/$pkgver.tar.gz
	taskcafe.initd
	taskcafe.confd
	"
# No testsuite
# Downloading Go and NodeJS dependencies
options="!check chmod-clean net"

export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -trimpath"
export GOCACHE="$srcdir/go-cache"
export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go"

build() {
	export NODE_OPTIONS=--openssl-legacy-provider
	# Download npm dependencies
	mage install

	# Set CI=false so warnings aren't treated as errors
	# https://github.com/facebook/create-react-app/issues/3657
	CI=false mage build
}

package() {
	install -Dm755 dist/taskcafe "$pkgdir"/usr/bin/taskcafe

	# Add default config
	install -Dm644 conf/taskcafe.example.toml \
		"$pkgdir"/etc/taskcafe/config.toml

	install -Dm755 "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="
e54987965cf75543ab5b63138a96c3b11b04d8d7d81f445e3a3aab6ca9b44e3464e4a7ccd2ff40cc08a79ad41d1cedf6db1ef089921584e79972fa594dd08469  taskcafe-0.3.2.tar.gz
43239950292a481da33dd714a2eb4d1643dbbbd261c98540d8f4251a9742a2077943fb79a565e7b44562cc8dd2d7a4a518ee85e3862f3bcd8b4675e9a8c12c5b  taskcafe.initd
2cb92a08dc4541482e83fb2ee5ff4018e7f7813bf72f1dfca3c96b3cd90a704a07949e8c203c2a8d9809e7f9ade5bf1f3843230dcc37bd8891902dee7d9ecc1d  taskcafe.confd
"