Skip to content

Commit

Permalink
avoid tmp file, change depends name to match code. run ldconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
leuc committed Sep 4, 2023
1 parent 98d541b commit b04712b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
8 changes: 5 additions & 3 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pkgdesc='Complete solution to record, convert and stream audio and video with OM
arch=('riscv64')
url=https://ffmpeg.org/
prefix=/opt/ffmpeg-omx
install=ffmpeg-omx.install
license=(GPL3)
depends=(
alsa-lib
Expand Down Expand Up @@ -62,7 +63,7 @@ depends=(
v4l-utils
xz
zlib
libsf-omx-il.so
libOMX_Core.so
)
makedepends=(
amf-headers
Expand Down Expand Up @@ -209,8 +210,9 @@ build() {

package() {
make DESTDIR="${pkgdir}" -C ffmpeg install
echo "$prefix/lib" > "${srcdir}/ffmpeg-omx.conf"
install -D -m644 -t ${pkgdir}/etc/ld.so.conf.d/ "${srcdir}/ffmpeg-omx.conf"

install -dm0755 "$pkgdir/etc/ld.so.conf.d/"
echo "$prefix/lib" > "$pkgdir/etc/ld.so.conf.d/ffmpeg-omx.conf"
}

# vim:set sw=2 ts=2 et:
14 changes: 14 additions & 0 deletions ffmpeg-omx.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

post_install() {
usr/bin/ldconfig -r .
}

post_upgrade() {
usr/bin/ldconfig -r .
}

pre_remove() {
usr/bin/ldconfig -r .
}

0 comments on commit b04712b

Please sign in to comment.