From e813ab6e90ff4f9e38798e71cc9d6e5a53e30b2e Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 4 Dec 2021 21:13:54 +0100 Subject: [PATCH] New package: cmark-gfm-0.29.0.gfm.2 --- srcpkgs/cmark-gfm-devel | 1 + srcpkgs/cmark-gfm/template | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 120000 srcpkgs/cmark-gfm-devel create mode 100644 srcpkgs/cmark-gfm/template diff --git a/srcpkgs/cmark-gfm-devel b/srcpkgs/cmark-gfm-devel new file mode 120000 index 00000000000..bad5a89ab15 --- /dev/null +++ b/srcpkgs/cmark-gfm-devel @@ -0,0 +1 @@ +cmark-gfm \ No newline at end of file diff --git a/srcpkgs/cmark-gfm/template b/srcpkgs/cmark-gfm/template new file mode 100644 index 00000000000..ebd19864ced --- /dev/null +++ b/srcpkgs/cmark-gfm/template @@ -0,0 +1,34 @@ +# Template file for 'cmark-gfm' +pkgname=cmark-gfm +version=0.29.0.gfm.2 +revision=1 +build_style=cmake +short_desc="GitHub's fork of cmark, a CommonMark markdown renderer" +maintainer="Leah Neukirchen " +license="MIT" +homepage="https://github.com/github/cmark-gfm" +distfiles="https://github.com/github/cmark-gfm/archive/${version}.tar.gz" +checksum=66d92c8bef533744674c5b64d8744227584b12704bcfebbe16dab69f81e62029 + +pre_configure() { + # Fix the SONAME version to use just the major number + vsed -i -e 's;\(SOVERSION ${PROJECT_VERSION_MAJOR}\).*;\1;' \ + src/CMakeLists.txt extensions/CMakeLists.txt +} + +post_install() { + vlicense COPYING +} + +cmark-gfm-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.so" + vmove "usr/lib/*.a" + vmove usr/lib/pkgconfig + vmove usr/lib/cmake + vmove usr/share/man/man3 + } +}