diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-12-18 17:29:19 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-12-18 17:29:19 +0000 |
commit | 09633fe00cc935dfce072fd7e5877654493d9c9a (patch) | |
tree | 8d241fe5336ab97f9ab919ef9b188ad34f5a72b1 /testing/cmark | |
parent | 6b2eb7038a6aee1acb455ad32526976a0f1b3888 (diff) | |
download | aports-09633fe00cc935dfce072fd7e5877654493d9c9a.tar.bz2 aports-09633fe00cc935dfce072fd7e5877654493d9c9a.tar.xz |
community/cmark: modernize and add check
Diffstat (limited to 'testing/cmark')
-rw-r--r-- | testing/cmark/APKBUILD | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/testing/cmark/APKBUILD b/testing/cmark/APKBUILD index 72699b5af2..c52c6edad4 100644 --- a/testing/cmark/APKBUILD +++ b/testing/cmark/APKBUILD @@ -1,26 +1,30 @@ # Maintainer: Marian <m.buschsieweke@uni-muenster.de> pkgname=cmark pkgver=0.28.3 -pkgrel=0 +pkgrel=1 pkgdesc="C reference implementation of CommonMark, a rationalized Markdown spec" url="https://github.com/jgm/cmark" arch="all" license="BSD" -depends="" -depends_dev="" makedepends="re2c cmake" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/jgm/cmark/archive/${pkgver}.tar.gz" -builddir="$srcdir"/$pkgname-$pkgver +builddir="$srcdir/$pkgname-$pkgver" + build() { cd "$builddir" - make INSTALL_PREFIX=/usr || return 1 + make INSTALL_PREFIX=/usr +} + +check() { + cd "$builddir" + make test } package() { cd "$builddir" - make INSTALL_PREFIX=/usr DESTDIR="$pkgdir" install || return 1 + make INSTALL_PREFIX=/usr DESTDIR="$pkgdir" install } sha512sums="409105a3228a8ae22ba6acf95cd99bc9a2c20f8603aa0e803a33172eb6ef53f80f8f0262d2258b77f9fd6e1f2e9017a6c906b88f761e053c09ef88c9ffab7d29 cmark-0.28.3.tar.gz" |