[packages/vcpkg] New package vcpkg, version 2019.10

glen glen at pld-linux.org
Sat Apr 25 09:50:36 CEST 2020


commit ca2f7b0aa23588eb35b750006338a554b8a4fa0d
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sat Apr 25 10:21:27 2020 +0300

    New package vcpkg, version 2019.10
    
    based on brew package:
    - https://github.com/glensc/homebrew-tap/pull/10

 vcpkg.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
---
diff --git a/vcpkg.spec b/vcpkg.spec
new file mode 100644
index 0000000..e43455d
--- /dev/null
+++ b/vcpkg.spec
@@ -0,0 +1,52 @@
+#
+# Conditional build:
+%bcond_without	tests		# build with tests
+
+Summary:	C++ Library Manager for Windows, Linux, and MacOS
+Name:		vcpkg
+Version:	2019.10
+Release:	1
+License:	MIT
+Group:		Development/Tools
+Source0:	https://github.com/microsoft/vcpkg/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	8785dabef984c260a8e22513177764ef
+URL:		https://docs.microsoft.com/en-us/cpp/vcpkg
+BuildRequires:	cmake
+BuildRequires:	ninja
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Vcpkg helps you manage C and C++ libraries on Windows, Linux and
+MacOS.
+
+%prep
+%setup -q
+
+%build
+sh -x ./bootstrap-vcpkg.sh -useSystemBinaries
+
+%if %{with tests}
+./vcpkg search zlib
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libexecdir}/%{name}}
+install -p vcpkg $RPM_BUILD_ROOT%{_libexecdir}/%{name}
+cp -a ports scripts triplets .vcpkg-root $RPM_BUILD_ROOT%{_libexecdir}/%{name}
+ln -s --relative %{_libexecdir}/%{name}/%{name} $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md CHANGELOG.md LICENSE.txt
+%doc %lang(zh_CN) README_zh_CN.md
+%attr(755,root,root) %{_bindir}/vcpkg
+%dir %{_libexecdir}/%{name}
+%attr(755,root,root) %{_libexecdir}/%{name}/vcpkg
+%{_libexecdir}/%{name}/.vcpkg-root
+%{_libexecdir}/%{name}/ports
+%{_libexecdir}/%{name}/scripts
+%{_libexecdir}/%{name}/triplets
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vcpkg.git/commitdiff/ca2f7b0aa23588eb35b750006338a554b8a4fa0d



More information about the pld-cvs-commit mailing list