aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2022-11-24 20:52:45 +0100
committerAndy Postnikov <apostnikov@gmail.com>2022-11-24 20:52:45 +0100
commitf7a83454fa5b8d4735e43605c0253b2fcca7dc8b (patch)
treeec4e7927916dfb49fa12fb419eda8052ae86a8c5
parentf80f5b1728ce4b5784525c36576cadf8ed736fc6 (diff)
downloadaports-f7a83454fa5b8d4735e43605c0253b2fcca7dc8b.tar.gz
aports-f7a83454fa5b8d4735e43605c0253b2fcca7dc8b.tar.bz2
aports-f7a83454fa5b8d4735e43605c0253b2fcca7dc8b.tar.xz
testing/cdist: enable check
-rw-r--r--testing/cdist/APKBUILD17
1 files changed, 12 insertions, 5 deletions
diff --git a/testing/cdist/APKBUILD b/testing/cdist/APKBUILD
index 127c2c03b2..44107baf30 100644
--- a/testing/cdist/APKBUILD
+++ b/testing/cdist/APKBUILD
@@ -2,20 +2,27 @@
# Maintainer: Lucas Ramage <lucas.ramage@infinite-omicron.com>
pkgname=cdist
pkgver=7.0.0
-pkgrel=1
+pkgrel=2
pkgdesc="A Usable Configuration Management System"
url="https://www.cdi.st"
license="GPL-3.0-or-later"
arch="noarch"
depends="python3"
+makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://code.ungleich.ch/ungleich-public/cdist/archive/$pkgver.tar.gz"
builddir="$srcdir/cdist"
-options="!check"
-package() {
+build() {
echo "VERSION = \"$pkgver\"" > cdist/version.py
- ./bin/cdist 2> /dev/null
- python3 setup.py build install --root="$pkgdir"
+ python3 setup.py build
+}
+
+check() {
+ python3 -m unittest discover
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="