cmark: fix soname to use just the major number

This commit is contained in:
Jürgen Buchmüller 2018-01-17 23:31:03 +01:00
parent 6428dfff69
commit 163830f49c

View file

@ -1,7 +1,7 @@
# Template file for 'cmark' # Template file for 'cmark'
pkgname=cmark pkgname=cmark
version=0.28.3 version=0.28.3
revision=1 revision=2
build_style=cmake build_style=cmake
short_desc="CommonMark parsing and rendering library and program in C" short_desc="CommonMark parsing and rendering library and program in C"
maintainer="pancake <pancake@nopcode.org>" maintainer="pancake <pancake@nopcode.org>"
@ -10,6 +10,12 @@ homepage="https://github.com/jgm/cmark"
distfiles="https://github.com/jgm/cmark/archive/${version}.tar.gz" distfiles="https://github.com/jgm/cmark/archive/${version}.tar.gz"
checksum=acc98685d3c1b515ff787ac7c994188dadaf28a2d700c10c1221da4199bae1fc checksum=acc98685d3c1b515ff787ac7c994188dadaf28a2d700c10c1221da4199bae1fc
pre_configure() {
# Fix the SONAME version to use just the major number
sed -i src/CMakeLists.txt \
-e 's;\(SOVERSION ${PROJECT_VERSION_MAJOR}\).*;\1;'
}
post_install() { post_install() {
vlicense COPYING vlicense COPYING
} }