From 8ee6316bb308c4b09cc1b62e9c291f15631c3228 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 1 May 2024 22:49:18 -0400 Subject: [PATCH] hexchat: don't remove pkgconfig/headers --- srcpkgs/hexchat-devel | 1 + srcpkgs/hexchat/template | 17 ++++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 120000 srcpkgs/hexchat-devel diff --git a/srcpkgs/hexchat-devel b/srcpkgs/hexchat-devel new file mode 120000 index 00000000000000..6cf68e662f61f1 --- /dev/null +++ b/srcpkgs/hexchat-devel @@ -0,0 +1 @@ +hexchat \ No newline at end of file diff --git a/srcpkgs/hexchat/template b/srcpkgs/hexchat/template index d20bef5fccf20c..11b9253c4156e2 100644 --- a/srcpkgs/hexchat/template +++ b/srcpkgs/hexchat/template @@ -1,7 +1,7 @@ # Template file for 'hexchat' pkgname=hexchat version=2.16.2 -revision=2 +revision=3 build_style=meson configure_args="-Ddbus=enabled -Dtls=enabled -Dwith-perl=/usr/bin/perl -Dwith-python=python3 @@ -31,12 +31,6 @@ if [ "$CROSS_BUILD" ]; then shared-mime-info" fi -post_install() { - # Remove useless files. - rm -rf "${DESTDIR}/usr/include" - rm -rf "${DESTDIR}/usr/lib/pkgconfig" -} - hexchat-perl_package() { lib32disabled=yes short_desc+=" - perl plugin" @@ -64,3 +58,12 @@ hexchat-lua_package() { vmove usr/lib/hexchat/plugins/lua.so } } + +hexchat-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + } +}