From 6a5c7b42035a9ffac409ee19ea07d74e044feec5 Mon Sep 17 00:00:00 2001 From: Lunar Starstrum Date: Wed, 1 Mar 2023 01:32:52 -0600 Subject: [PATCH 1/3] New package: libdpp-10.0.23_1 --- srcpkgs/libdpp-devel | 1 + srcpkgs/libdpp/template | 32 ++++++++++++++++++++++++++++++++ srcpkgs/libdpp/update | 2 ++ 3 files changed, 35 insertions(+) create mode 120000 srcpkgs/libdpp-devel create mode 100644 srcpkgs/libdpp/template create mode 100644 srcpkgs/libdpp/update diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel new file mode 120000 index 000000000000..9176d7a850be --- /dev/null +++ b/srcpkgs/libdpp-devel @@ -0,0 +1 @@ +libdpp \ No newline at end of file diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template new file mode 100644 index 000000000000..845dc12522b4 --- /dev/null +++ b/srcpkgs/libdpp/template @@ -0,0 +1,32 @@ +# Template file for 'libdpp' +pkgname=libdpp +version=10.0.23 +revision=1 +wrksrc=DPP-${version} +build_style=cmake +configure_args="-DDPP_USE_EXTERNAL_JSON=ON" +cmake_builddir=build +hostmakedepends="pkg-config" +makedepends="libsodium-devel opus-devel zlib-devel openssl-devel json-c++" +short_desc="C++ Discord API Library for Bots" +maintainer="Lunar Starstrum " +license=Apache-2.0 +homepage="https://dpp.dev" +distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz" +checksum=8f9db61c3586a492ada378235300c509e3bc2fc090cef32de0a8241741038df0 + +libdpp-devel_package() { + depends="${makedepends} ${sourcepkg}-${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + # If the path already exists, remove it to prevent conflicts + filepath="${DESTDIR}/usr/lib/dpp-${version%.*}" + if [ -d $filepath ]; then + rm -r $filepath + fi + + vmove usr/lib/pkgconfig + vmove usr/include + vmove "usr/lib/*.so" + } +} diff --git a/srcpkgs/libdpp/update b/srcpkgs/libdpp/update new file mode 100644 index 000000000000..f88d641f9275 --- /dev/null +++ b/srcpkgs/libdpp/update @@ -0,0 +1,2 @@ +site="https://github.com/brainboxdotcc/DPP/tags" +pattern='/archive/refs/tags/v\K[\d\.]+(?=\.tar\.gz")' From 39f7a8b99204c9e0928785a514cd313f799dcdeb Mon Sep 17 00:00:00 2001 From: Lunar Starstrum Date: Thu, 2 Mar 2023 15:49:53 -0600 Subject: [PATCH 2/3] Remove workdir --- srcpkgs/libdpp/template | 1 - 1 file changed, 1 deletion(-) diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template index 845dc12522b4..c8155ff098fc 100644 --- a/srcpkgs/libdpp/template +++ b/srcpkgs/libdpp/template @@ -2,7 +2,6 @@ pkgname=libdpp version=10.0.23 revision=1 -wrksrc=DPP-${version} build_style=cmake configure_args="-DDPP_USE_EXTERNAL_JSON=ON" cmake_builddir=build From 6aaabf906366b299d3b94151ad7aab4f73f7d33a Mon Sep 17 00:00:00 2001 From: Lunar Starstrum Date: Thu, 2 Mar 2023 20:43:47 -0600 Subject: [PATCH 3/3] rename libdpp to dpp --- srcpkgs/dpp-devel | 1 + srcpkgs/{libdpp => dpp}/template | 6 +++--- srcpkgs/{libdpp => dpp}/update | 0 srcpkgs/libdpp-devel | 1 - 4 files changed, 4 insertions(+), 4 deletions(-) create mode 120000 srcpkgs/dpp-devel rename srcpkgs/{libdpp => dpp}/template (92%) rename srcpkgs/{libdpp => dpp}/update (100%) delete mode 120000 srcpkgs/libdpp-devel diff --git a/srcpkgs/dpp-devel b/srcpkgs/dpp-devel new file mode 120000 index 000000000000..cb34bf275a0a --- /dev/null +++ b/srcpkgs/dpp-devel @@ -0,0 +1 @@ +dpp \ No newline at end of file diff --git a/srcpkgs/libdpp/template b/srcpkgs/dpp/template similarity index 92% rename from srcpkgs/libdpp/template rename to srcpkgs/dpp/template index c8155ff098fc..c6b4a808c5cc 100644 --- a/srcpkgs/libdpp/template +++ b/srcpkgs/dpp/template @@ -1,5 +1,5 @@ -# Template file for 'libdpp' -pkgname=libdpp +# Template file for 'dpp' +pkgname=dpp version=10.0.23 revision=1 build_style=cmake @@ -14,7 +14,7 @@ homepage="https://dpp.dev" distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz" checksum=8f9db61c3586a492ada378235300c509e3bc2fc090cef32de0a8241741038df0 -libdpp-devel_package() { +dpp-devel_package() { depends="${makedepends} ${sourcepkg}-${version}_${revision}" short_desc+=" - development files" pkg_install() { diff --git a/srcpkgs/libdpp/update b/srcpkgs/dpp/update similarity index 100% rename from srcpkgs/libdpp/update rename to srcpkgs/dpp/update diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel deleted file mode 120000 index 9176d7a850be..000000000000 --- a/srcpkgs/libdpp-devel +++ /dev/null @@ -1 +0,0 @@ -libdpp \ No newline at end of file