aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-07 06:09:16 -0300
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-08 10:43:29 +0000
commitb38c2894f413a67288ae89594b0281ec392803e5 (patch)
treed360f308d427f89ff8e54980f79f110b0273d989
parent770f01bf599515e727cc5a89843c80a7fc72edbb (diff)
downloadaports-b38c2894f413a67288ae89594b0281ec392803e5.tar.gz
aports-b38c2894f413a67288ae89594b0281ec392803e5.tar.bz2
aports-b38c2894f413a67288ae89594b0281ec392803e5.tar.xz
community/cmark: upgrade to 0.29.0
-rw-r--r--community/cmark/APKBUILD28
1 files changed, 15 insertions, 13 deletions
diff --git a/community/cmark/APKBUILD b/community/cmark/APKBUILD
index 7066caa9e5..e8e947b70f 100644
--- a/community/cmark/APKBUILD
+++ b/community/cmark/APKBUILD
@@ -1,21 +1,18 @@
-# Maintainer: Marian Buschsieweke <m.buschsieweke@uni-muenster.de>
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=cmark
-pkgver=0.28.3
-pkgrel=3
+pkgver=0.29.0
+pkgrel=0
pkgdesc="C reference implementation of CommonMark, a rationalized Markdown spec"
url="https://github.com/commonmark/cmark"
arch="all"
-license="BSD-2-Clause MIT"
+license="BSD-2-Clause"
makedepends="cmake re2c"
-subpackages="$pkgname-doc $pkgname-dev"
+subpackages="$pkgname-doc $pkgname-static $pkgname-dev lib$pkgname:libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/commonmark/$pkgname/archive/$pkgver.tar.gz"
-builddir="$srcdir/$pkgname-$pkgver"
build() {
mkdir -p "$builddir"/build
- cd "$builddir"/build
-
- cmake .. \
+ cmake . -B build \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \
-DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \
@@ -23,17 +20,22 @@ build() {
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_VERBOSE_MAKEFILE=ON
- make
+ make -C build
}
check() {
- cd "$builddir"
make -C build test
}
package() {
- cd "$builddir"
make -C build install DESTDIR="$pkgdir"
}
-sha512sums="409105a3228a8ae22ba6acf95cd99bc9a2c20f8603aa0e803a33172eb6ef53f80f8f0262d2258b77f9fd6e1f2e9017a6c906b88f761e053c09ef88c9ffab7d29 cmark-0.28.3.tar.gz"
+static() {
+ depends=""
+ pkgdesc="$pkgdesc (static library)"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
+}
+
+sha512sums="06eb110cfd90c9e980c022b7588e28864d15a4da5d07d61ad4b27c6de47367492b9e58e9434e62b07517aa6dc484f17af13916808be3188f38c37d20cbf33112 cmark-0.29.0.tar.gz"