Skip to content

Commit b04712b

Browse files
committed
avoid tmp file, change depends name to match code. run ldconfig
1 parent 98d541b commit b04712b

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

PKGBUILD

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pkgdesc='Complete solution to record, convert and stream audio and video with OM
77
arch=('riscv64')
88
url=https://ffmpeg.org/
99
prefix=/opt/ffmpeg-omx
10+
install=ffmpeg-omx.install
1011
license=(GPL3)
1112
depends=(
1213
alsa-lib
@@ -62,7 +63,7 @@ depends=(
6263
v4l-utils
6364
xz
6465
zlib
65-
libsf-omx-il.so
66+
libOMX_Core.so
6667
)
6768
makedepends=(
6869
amf-headers
@@ -209,8 +210,9 @@ build() {
209210

210211
package() {
211212
make DESTDIR="${pkgdir}" -C ffmpeg install
212-
echo "$prefix/lib" > "${srcdir}/ffmpeg-omx.conf"
213-
install -D -m644 -t ${pkgdir}/etc/ld.so.conf.d/ "${srcdir}/ffmpeg-omx.conf"
213+
214+
install -dm0755 "$pkgdir/etc/ld.so.conf.d/"
215+
echo "$prefix/lib" > "$pkgdir/etc/ld.so.conf.d/ffmpeg-omx.conf"
214216
}
215217

216218
# vim:set sw=2 ts=2 et:

ffmpeg-omx.install

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
post_install() {
4+
usr/bin/ldconfig -r .
5+
}
6+
7+
post_upgrade() {
8+
usr/bin/ldconfig -r .
9+
}
10+
11+
pre_remove() {
12+
usr/bin/ldconfig -r .
13+
}
14+

0 commit comments

Comments
 (0)