From 924f0529c1ad54fb0513cbb4ea113a3fd5da1b2e Mon Sep 17 00:00:00 2001 From: bingulo Date: Mon, 8 Aug 2022 15:41:58 -0300 Subject: [PATCH 1/2] New package: civetweb-1.15 --- common/shlibs | 1 + srcpkgs/civetweb/patches/install-fix.patch | 16 +++++++++ srcpkgs/civetweb/template | 39 ++++++++++++++++++++++ srcpkgs/libcivetweb | 1 + srcpkgs/libcivetweb-devel | 1 + 5 files changed, 58 insertions(+) create mode 100644 srcpkgs/civetweb/patches/install-fix.patch create mode 100644 srcpkgs/civetweb/template create mode 120000 srcpkgs/libcivetweb create mode 120000 srcpkgs/libcivetweb-devel diff --git a/common/shlibs b/common/shlibs index ea6fde4ffe31..a941669934ef 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4185,3 +4185,4 @@ libnvidia-container-go.so.1 libnvidia-container-1.10.0_1 libqtspell-qt5.so.1 qtspell-1.0.1_1 libopensmtpd.so.0 libopensmtpd-0.7_1 libiio.so.0 libiio-0.23_1 +libcivetweb.so.1 libcivetweb-1.15_1 diff --git a/srcpkgs/civetweb/patches/install-fix.patch b/srcpkgs/civetweb/patches/install-fix.patch new file mode 100644 index 000000000000..be282dbf613c --- /dev/null +++ b/srcpkgs/civetweb/patches/install-fix.patch @@ -0,0 +1,16 @@ +--- a/Makefile ++++ b/Makefile +@@ -19,10 +19,10 @@ + # http://www.gnu.org/prep/standards/html_node/Directory-Variables.html + PREFIX ?= /usr/local + EXEC_PREFIX = $(PREFIX) +-BINDIR = $(EXEC_PREFIX)/bin +-DATAROOTDIR = $(PREFIX)/share ++BINDIR = $(DESTDIR)$(EXEC_PREFIX)/bin ++DATAROOTDIR = $(DESTDIR)$(PREFIX)/share + DOCDIR = $(DATAROOTDIR)/doc/$(CPROG) +-SYSCONFDIR ?= $(PREFIX)/etc ++SYSCONFDIR ?= $(DESTDIR)/etc + HTMLDIR = $(DOCDIR) + INCLUDEDIR = $(DESTDIR)$(PREFIX)/include + LIBDIR = $(DESTDIR)$(EXEC_PREFIX)/lib diff --git a/srcpkgs/civetweb/template b/srcpkgs/civetweb/template new file mode 100644 index 000000000000..96ff8080508b --- /dev/null +++ b/srcpkgs/civetweb/template @@ -0,0 +1,39 @@ +# Template file for 'civetweb' +pkgname=civetweb +version=1.15 +revision=1 +build_style=gnu-makefile +make_install_target="install install-headers install-lib install-slib" +make_use_env=yes +makedepends="openssl-devel" +short_desc="Embedded C/C++ web server" +maintainer="Carlos E. Gallo F. " +license="MIT" +homepage="https://civetweb.github.io/civetweb/" +distfiles="https://github.com/civetweb/civetweb/archive/refs/tags/v${version}.tar.gz" +checksum=90a533422944ab327a4fbb9969f0845d0dba05354f9cacce3a5005fa59f593b9 + +pre_install() { + vmkdir usr/include +} + +post_install() { + vlicense LICENSE.md +} + +libcivetweb_package() { + short_desc+=' - library' + pkg_install() { + vmove "usr/lib/*.so.*" + } +} + +libcivetweb-devel_package() { + depends="lib${sourcepkg}>=${version}_${revision}" + short_desc+=' - development files' + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +} diff --git a/srcpkgs/libcivetweb b/srcpkgs/libcivetweb new file mode 120000 index 000000000000..f740b5313316 --- /dev/null +++ b/srcpkgs/libcivetweb @@ -0,0 +1 @@ +civetweb \ No newline at end of file diff --git a/srcpkgs/libcivetweb-devel b/srcpkgs/libcivetweb-devel new file mode 120000 index 000000000000..f740b5313316 --- /dev/null +++ b/srcpkgs/libcivetweb-devel @@ -0,0 +1 @@ +civetweb \ No newline at end of file From f948af16acf91aefb916eccd160e5aaf589924fe Mon Sep 17 00:00:00 2001 From: bingulo Date: Mon, 8 Aug 2022 15:44:01 -0300 Subject: [PATCH 2/2] New package: dcmtk-3.6.7 --- common/shlibs | 27 +++++++++++++++++++++++ srcpkgs/dcmtk-doc | 1 + srcpkgs/dcmtk/template | 49 ++++++++++++++++++++++++++++++++++++++++++ srcpkgs/libdcmtk | 1 + srcpkgs/libdcmtk-devel | 1 + 5 files changed, 79 insertions(+) create mode 120000 srcpkgs/dcmtk-doc create mode 100644 srcpkgs/dcmtk/template create mode 120000 srcpkgs/libdcmtk create mode 120000 srcpkgs/libdcmtk-devel diff --git a/common/shlibs b/common/shlibs index a941669934ef..d3fd58874703 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4186,3 +4186,30 @@ libqtspell-qt5.so.1 qtspell-1.0.1_1 libopensmtpd.so.0 libopensmtpd-0.7_1 libiio.so.0 libiio-0.23_1 libcivetweb.so.1 libcivetweb-1.15_1 +libcmr.so.17 libdcmtk-3.6.7_1 +libdcmrt.so.17 libdcmtk-3.6.7_1 +libdcmdata.so.17 libdcmtk-3.6.7_1 +libdcmseg.so.17 libdcmtk-3.6.7_1 +libdcmdsig.so.17 libdcmtk-3.6.7_1 +libdcmsr.so.17 libdcmtk-3.6.7_1 +libdcmect.so.17 libdcmtk-3.6.7_1 +libdcmtkcharls.so.17 libdcmtk-3.6.7_1 +libdcmfg.so.17 libdcmtk-3.6.7_1 +libdcmtls.so.17 libdcmtk-3.6.7_1 +libdcmimage.so.17 libdcmtk-3.6.7_1 +libdcmtract.so.17 libdcmtk-3.6.7_1 +libdcmimgle.so.17 libdcmtk-3.6.7_1 +libdcmwlm.so.17 libdcmtk-3.6.7_1 +libdcmiod.so.17 libdcmtk-3.6.7_1 +libi2d.so.17 libdcmtk-3.6.7_1 +libdcmjpeg.so.17 libdcmtk-3.6.7_1 +libijg12.so.17 libdcmtk-3.6.7_1 +libdcmjpls.so.17 libdcmtk-3.6.7_1 +libijg16.so.17 libdcmtk-3.6.7_1 +libdcmnet.so.17 libdcmtk-3.6.7_1 +libijg8.so.17 libdcmtk-3.6.7_1 +libdcmpmap.so.17 libdcmtk-3.6.7_1 +liboflog.so.17 libdcmtk-3.6.7_1 +libdcmpstat.so.17 libdcmtk-3.6.7_1 +libofstd.so.17 libdcmtk-3.6.7_1 +libdcmqrdb.so.17 libdcmtk-3.6.7_1 diff --git a/srcpkgs/dcmtk-doc b/srcpkgs/dcmtk-doc new file mode 120000 index 000000000000..69ff54ce2e0c --- /dev/null +++ b/srcpkgs/dcmtk-doc @@ -0,0 +1 @@ +dcmtk \ No newline at end of file diff --git a/srcpkgs/dcmtk/template b/srcpkgs/dcmtk/template new file mode 100644 index 000000000000..63c28bc3c376 --- /dev/null +++ b/srcpkgs/dcmtk/template @@ -0,0 +1,49 @@ +# Template file for 'dcmtk' +pkgname=dcmtk +version=3.6.7 +revision=1 +build_style=cmake +configure_args="-DDCMTK_ENABLE_CXX11=ON -DBUILD_SHARED_LIBS=ON -DDCMTK_WITH_DOXYGEN=ON" +hostmakedepends="doxygen" +makedepends="openssl-devel zlib-devel tiff-devel libpng-devel libxml2-devel icu-devel" +short_desc="Libraries and tools that implements DICOM standard" +maintainer="Carlos E. Gallo F. " +license="custom: see /usr/share/licenses/${pkgname}" +homepage="https://dcmtk.org/dcmtk.php.en" +distfiles="https://dicom.offis.de/download/dcmtk/${version//.}/dcmtk-${version}.tar.gz" +checksum=7c58298e3e8d60232ee6fc8408cfadd14463cc11a3c4ca4c59af5988c7e9710a + +pre_build() { + ninja -C build DOXYGEN +} + +post_install() { + vlicense COPYRIGHT +} + +dcmtk-doc_package() { + short_desc+=' - documentation' + pkg_install() { + vmove usr/share/doc + } +} + +# TODO need license here +libdcmtk_package() { + short_desc+=' - runtime libraries' + pkg_install() { + vmove "usr/lib/*.so.*" + vmove usr/share/dcmtk + } +} + +libdcmtk-devel_package() { + short_desc+=' - development files' + depends="lib${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/lib/cmake + vmove "usr/lib/*.so" + } +} diff --git a/srcpkgs/libdcmtk b/srcpkgs/libdcmtk new file mode 120000 index 000000000000..69ff54ce2e0c --- /dev/null +++ b/srcpkgs/libdcmtk @@ -0,0 +1 @@ +dcmtk \ No newline at end of file diff --git a/srcpkgs/libdcmtk-devel b/srcpkgs/libdcmtk-devel new file mode 120000 index 000000000000..69ff54ce2e0c --- /dev/null +++ b/srcpkgs/libdcmtk-devel @@ -0,0 +1 @@ +dcmtk \ No newline at end of file