From: the-eater <the-eater@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] unrar: Expose library and header files
Date: Tue, 21 Dec 2021 23:44:05 +0100 [thread overview]
Message-ID: <20211221224405.F-Oe8gYEAolFU27OyN06fVq9U_i512rVSPRbNoP4Kms@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34651@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 463 bytes --]
There is an updated pull request by the-eater against master on the void-packages repository
https://github.com/the-eater/neo-void-packages pkg/unrar/6.1.3
https://github.com/void-linux/void-packages/pull/34651
unrar: Expose library and header files
This also adds libunrar and libunrar-devel :)
#### Testing the changes
- I tested the changes in this PR: **YES**
A patch file from https://github.com/void-linux/void-packages/pull/34651.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/unrar/6.1.3-34651.patch --]
[-- Type: text/x-diff, Size: 1831 bytes --]
From 48a505e2bf7fd588aa4f719642cdfdcf25b55d9a Mon Sep 17 00:00:00 2001
From: eater <=@eater.me>
Date: Tue, 21 Dec 2021 22:39:09 +0100
Subject: [PATCH] unrar: Expose library and header files
---
srcpkgs/libunrar | 1 +
srcpkgs/libunrar-devel | 1 +
srcpkgs/unrar/template | 22 ++++++++++++++++++++--
3 files changed, 22 insertions(+), 2 deletions(-)
create mode 120000 srcpkgs/libunrar
create mode 120000 srcpkgs/libunrar-devel
diff --git a/srcpkgs/libunrar b/srcpkgs/libunrar
new file mode 120000
index 000000000000..77165df2b259
--- /dev/null
+++ b/srcpkgs/libunrar
@@ -0,0 +1 @@
+unrar
\ No newline at end of file
diff --git a/srcpkgs/libunrar-devel b/srcpkgs/libunrar-devel
new file mode 120000
index 000000000000..77165df2b259
--- /dev/null
+++ b/srcpkgs/libunrar-devel
@@ -0,0 +1 @@
+unrar
\ No newline at end of file
diff --git a/srcpkgs/unrar/template b/srcpkgs/unrar/template
index 11ce82028475..77463ec7cc63 100644
--- a/srcpkgs/unrar/template
+++ b/srcpkgs/unrar/template
@@ -1,7 +1,7 @@
# Template file for 'unrar'
pkgname=unrar
version=6.1.3
-revision=1
+revision=2
wrksrc=unrar
short_desc="Unarchiver for .rar files (non-free version)"
maintainer="skmpz <dem.procopiou@gmail.com>"
@@ -16,9 +16,27 @@ do_build() {
-e 's/^\(LDFLAGS\)=\(.*\)/\1+=-lpthread \2/' \
-i makefile
make CXX="$CXX" LD="$LD" STRIP=: -f makefile
+ # early install of unrar because makefile deletes unrar on lib creation
+ vbin unrar
+ make -d CXX="$CXX" LD="$LD" STRIP=: -f makefile lib
}
do_install() {
- vbin unrar
vlicense license.txt LICENSE
}
+
+libunrar_package() {
+ short_desc+=" - shared library"
+
+ pkg_install() {
+ vinstall libunrar.so 0755 /usr/lib/
+ }
+}
+
+libunrar-devel_package() {
+ short_desc+=" - development files"
+
+ pkg_install() {
+ vinstall dll.hpp 644 /usr/include/unrar/
+ }
+}
next prev parent reply other threads:[~2021-12-21 22:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-21 21:42 [PR PATCH] unrar: update to 6.1.3 the-eater
2021-12-21 21:50 ` paper42
2021-12-21 21:56 ` [PR PATCH] [Updated] " the-eater
2021-12-21 21:56 ` unrar: Expose library and header files the-eater
2021-12-21 22:16 ` [PR REVIEW] " paper42
2021-12-21 22:25 ` paper42
2021-12-21 22:29 ` the-eater
2021-12-21 22:31 ` paper42
2021-12-21 22:33 ` the-eater
2021-12-21 22:37 ` paper42
2021-12-21 22:40 ` the-eater
2021-12-21 22:43 ` the-eater
2021-12-21 22:44 ` the-eater [this message]
2021-12-22 18:16 ` [PR PATCH] [Merged]: " paper42
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=20211221224405.F-Oe8gYEAolFU27OyN06fVq9U_i512rVSPRbNoP4Kms@z \
--to=the-eater@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).