mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 09:22:57 +02:00
pugixml: enable pkg-config and add license
This commit is contained in:
parent
33b7db2bbd
commit
30ab8754ff
2 changed files with 27 additions and 2 deletions
18
srcpkgs/pugixml/patches/pkg-config.patch
Normal file
18
srcpkgs/pugixml/patches/pkg-config.patch
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
--- CMakeLists.txt.bak 2017-09-30 16:33:46.956774231 +0200
|
||||||
|
+++ CMakeLists.txt 2017-09-30 16:34:08.857775066 +0200
|
||||||
|
@@ -52,7 +52,7 @@
|
||||||
|
|
||||||
|
if(BUILD_PKGCONFIG)
|
||||||
|
# Install library into its own directory under LIBDIR
|
||||||
|
- set(INSTALL_SUFFIX /pugixml-${PUGIXML_VERSION_STRING})
|
||||||
|
+ # set(INSTALL_SUFFIX /pugixml-${PUGIXML_VERSION_STRING})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
install(TARGETS pugixml EXPORT pugixml-config
|
||||||
|
@@ -75,4 +75,4 @@
|
||||||
|
add_executable(check ${TEST_SOURCES})
|
||||||
|
target_link_libraries(check pugixml)
|
||||||
|
add_custom_command(TARGET check POST_BUILD COMMAND check WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
|
||||||
|
-endif()
|
||||||
|
\ No newline at end of file
|
||||||
|
+endif()
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'pugixml'
|
# Template file for 'pugixml'
|
||||||
pkgname=pugixml
|
pkgname=pugixml
|
||||||
version=1.8.1
|
version=1.8.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
short_desc="Light-weight, simple and fast XML parser for C++ with XPath support"
|
short_desc="Light-weight, simple and fast XML parser for C++ with XPath support"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||||
|
@ -9,14 +9,21 @@ license="MIT"
|
||||||
homepage="http://pugixml.org/"
|
homepage="http://pugixml.org/"
|
||||||
distfiles="http://github.com/zeux/pugixml/releases/download/v${version}/pugixml-$version.tar.gz"
|
distfiles="http://github.com/zeux/pugixml/releases/download/v${version}/pugixml-$version.tar.gz"
|
||||||
checksum=00d974a1308e85ca0677a981adc1b2855cb060923181053fb0abf4e2f37b8f39
|
checksum=00d974a1308e85ca0677a981adc1b2855cb060923181053fb0abf4e2f37b8f39
|
||||||
configure_args="-DBUILD_SHARED_LIBS=On"
|
configure_args="-DBUILD_SHARED_LIBS=On -DBUILD_PKGCONFIG=On"
|
||||||
wrksrc=$pkgname-1.8
|
wrksrc=$pkgname-1.8
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
tail -25 readme.txt > LICENSE
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
||||||
|
|
||||||
pugixml-devel_package() {
|
pugixml-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
|
vmove usr/lib/pkgconfig
|
||||||
|
vmove usr/lib/cmake
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue