aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-18 04:23:33 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:50 +0000
commit847946acbfc0dfafcf4cbe920e53adef9be513a8 (patch)
tree62ee8c6c9fa1632b02749f2ef53f8fcaa3b29aea
parent840cbc855a8a806ac20043c9989abbe8558ec897 (diff)
downloadaports-847946acbfc0dfafcf4cbe920e53adef9be513a8.tar.bz2
aports-847946acbfc0dfafcf4cbe920e53adef9be513a8.tar.xz
main/yaml: modernise, add test suite
-rw-r--r--main/yaml/APKBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/main/yaml/APKBUILD b/main/yaml/APKBUILD
index bf0718e1fd..d0117ca39a 100644
--- a/main/yaml/APKBUILD
+++ b/main/yaml/APKBUILD
@@ -11,7 +11,6 @@ depends=""
makedepends=""
subpackages="$pkgname-dev"
source="http://pyyaml.org/download/libyaml/yaml-$pkgver.tar.gz"
-builddir="$srcdir/yaml-$pkgver"
build() {
cd "$builddir"
@@ -22,16 +21,18 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
-md5sums="1abf45bd3a96374fa55ca63b32f9f2f9 yaml-0.1.7.tar.gz"
-sha256sums="8088e457264a98ba451a90b8661fcb4f9d6f478f7265d48322a196cec2480729 yaml-0.1.7.tar.gz"
sha512sums="1ee5007dd10db137b5ee80f8117f07390ec04af98d087a5f5475dd2b38d87c699b79ab1676e6c7bfa263323fcdf8edd69fada2b0b7f9c57bef4e46cd65f1e975 yaml-0.1.7.tar.gz"