aboutsummaryrefslogtreecommitdiffstats
path: root/community/cmark
diff options
context:
space:
mode:
Diffstat (limited to 'community/cmark')
-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"