summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake2019-04-25 23:21:19 +0200
committerJake2019-04-25 23:24:55 +0200
commit01c3a0005f57ed8d45f42a1ba918172d4a9b6f26 (patch)
treec755aec339e95794b063b0ca0242e4c415820d7e
parent7ee634190f8dfca0d8d83c27737e1865a6812cae (diff)
downloadaur-01c3a0005f57ed8d45f42a1ba918172d4a9b6f26.tar.gz
Add .install with ld preload notice
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD1
-rw-r--r--codecs-preload.install3
3 files changed, 5 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7f0af4242d36..902b60982aa6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,6 +3,7 @@ pkgbase = nwjs-ffmpeg-codecs-bin
pkgver = 0.37.4
pkgrel = 1
url = https://github.com/iteufel/nwjs-ffmpeg-prebuilt
+ install = codecs-preload.install
arch = x86_64
license = LGPL2.1
depends = nwjs-bin
diff --git a/PKGBUILD b/PKGBUILD
index 71fc4ccb16c8..219f7538e511 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,6 +9,7 @@ url="https://github.com/iteufel/nwjs-ffmpeg-prebuilt"
license=('LGPL2.1')
source=("https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/download/$pkgver/$pkgver-linux-x64.zip")
sha512sums=('c0f9af156f4475310d0e4b2063e927db5a06c5aef0edf9ab9ebefc6ea989c0f93257c50c5923ed3482601d41ee8a61e6c9dd42f97cf2b4973690c2c03f450e95')
+install='codecs-preload.install'
package() {
install -d "/opt/nwjs"
diff --git a/codecs-preload.install b/codecs-preload.install
new file mode 100644
index 000000000000..a813b628410d
--- /dev/null
+++ b/codecs-preload.install
@@ -0,0 +1,3 @@
+post_install() {
+ echo "IMPORTANT: outside of packages that depend on this, nwjs will still default to the builtin codecs, you have to set LD_PRELOAD=/opt/nwjs/libffmpeg.so to switch to this version!"
+}