diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-05-06 22:15:11 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-05-06 22:33:14 +0200 |
commit | 528f3fcfc965985486a0f3aeff39051b9ade4591 (patch) | |
tree | 87fcfea329962f7213823b67629a29c155317081 /testing | |
parent | 4a66978dd949d571fdd984d800b3121c3a1a297f (diff) | |
download | aports-528f3fcfc965985486a0f3aeff39051b9ade4591.tar.bz2 aports-528f3fcfc965985486a0f3aeff39051b9ade4591.tar.xz |
testing/cmark: fix abuild and clarify license
Diffstat (limited to 'testing')
-rw-r--r-- | testing/cmark/APKBUILD | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/testing/cmark/APKBUILD b/testing/cmark/APKBUILD index 1ce297fc0c..7066caa9e5 100644 --- a/testing/cmark/APKBUILD +++ b/testing/cmark/APKBUILD @@ -1,30 +1,39 @@ -# Maintainer: Marian <m.buschsieweke@uni-muenster.de> +# Maintainer: Marian Buschsieweke <m.buschsieweke@uni-muenster.de> pkgname=cmark pkgver=0.28.3 -pkgrel=2 +pkgrel=3 pkgdesc="C reference implementation of CommonMark, a rationalized Markdown spec" url="https://github.com/commonmark/cmark" arch="all" -license="BSD" -makedepends="re2c cmake" -subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/commonmark/cmark/archive/${pkgver}.tar.gz" - +license="BSD-2-Clause MIT" +makedepends="cmake re2c" +subpackages="$pkgname-doc $pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/commonmark/$pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$builddir" - make INSTALL_PREFIX=/usr + mkdir -p "$builddir"/build + cd "$builddir"/build + + cmake .. \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \ + -DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \ + -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_VERBOSE_MAKEFILE=ON + make } check() { cd "$builddir" - make test + make -C build test } package() { cd "$builddir" - make INSTALL_PREFIX=/usr DESTDIR="$pkgdir" install + make -C build install DESTDIR="$pkgdir" } sha512sums="409105a3228a8ae22ba6acf95cd99bc9a2c20f8603aa0e803a33172eb6ef53f80f8f0262d2258b77f9fd6e1f2e9017a6c906b88f761e053c09ef88c9ffab7d29 cmark-0.28.3.tar.gz" |