Github messages for voidlinux
 help / color / mirror / Atom feed
From: ericonr <ericonr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] projectM: split into -devel subpackage.
Date: Sun, 27 Sep 2020 23:57:37 +0200	[thread overview]
Message-ID: <20200927215737.DoRAnVzVuKtbCfuBg4A4eWXAlACk1-BJEvZfPc_wTZc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25135@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

There is an updated pull request by ericonr against master on the void-packages repository

https://github.com/ericonr/void-packages proM
https://github.com/void-linux/void-packages/pull/25135

projectM: split into -devel subpackage.
Also fix location of desktop files, and assign to LDFLAGS instead of
adding to it.

@abenson 

A patch file from https://github.com/void-linux/void-packages/pull/25135.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-proM-25135.patch --]
[-- Type: text/x-diff, Size: 2178 bytes --]

From 2da40dddef0cb43c1016d277e96c2aa41389e038 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Sun, 27 Sep 2020 18:44:51 -0300
Subject: [PATCH] projectM: split into -devel subpackage.

Also fix location of desktop files, and assign to LDFLAGS instead of
adding to it.
---
 common/shlibs             |  1 +
 srcpkgs/projectM-devel    |  1 +
 srcpkgs/projectM/template | 20 ++++++++++++++++++--
 3 files changed, 20 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/projectM-devel

diff --git a/common/shlibs b/common/shlibs
index 23d24e49060..036493aad38 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -765,6 +765,7 @@ libpulse-mainloop-glib.so.0 libpulseaudio-1.0_1
 libpulse-simple.so.0 libpulseaudio-1.0_1
 libpulsecommon-13.0.so libpulseaudio-13.0_1
 libpulsecore-13.0.so libpulseaudio-13.0_1
+libprojectM.so.3 projectM-3.1.7_2
 liborc-0.4.so.0 orc-0.4.11_1
 liborc-test-0.4.so.0 orc-0.4.11_1
 libgmime-2.6.so.0 gmime-2.6.4_1
diff --git a/srcpkgs/projectM-devel b/srcpkgs/projectM-devel
new file mode 120000
index 00000000000..80ca2de8e22
--- /dev/null
+++ b/srcpkgs/projectM-devel
@@ -0,0 +1 @@
+projectM
\ No newline at end of file
diff --git a/srcpkgs/projectM/template b/srcpkgs/projectM/template
index ca2b22afdd9..563fa77563f 100644
--- a/srcpkgs/projectM/template
+++ b/srcpkgs/projectM/template
@@ -1,7 +1,7 @@
 # Template file for 'projectM'
 pkgname=projectM
 version=3.1.7
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--datadir=/usr/libexec"
 hostmakedepends="pkg-config qt5-host-tools automake libtool which"
@@ -17,5 +17,21 @@ checksum=30af6d1c108efc19311a5636efbbedbe83d23905bb8472dd3fe4b07a21fb5fd3
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-fts-devel"
-	export LDFLAGS+=" -lfts"
+	LDFLAGS="-lfts"
 fi
+
+post_install() {
+	# fix location of desktop files
+	mv $DESTDIR/usr/libexec/{applications,icons} $DESTDIR/usr/share
+}
+
+projectM-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+	}
+}

  reply	other threads:[~2020-09-27 21:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-27 21:46 [PR PATCH] " ericonr
2020-09-27 21:57 ` ericonr [this message]
2020-09-27 23:43 ` ericonr
2020-09-27 23:43 ` [PR PATCH] [Closed]: " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200927215737.DoRAnVzVuKtbCfuBg4A4eWXAlACk1-BJEvZfPc_wTZc@z \
    --to=ericonr@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).