blob: 49fa527bcfc3d70f0ce556e7c3aebbd62550cda1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
pkgbase=libvlc
pkgname=('libvlc' 'libvlccore')
_pkgname=vlc
pkgver=5.6.0
_pkgver=3.0.6-1
pkgrel=6
pkgdesc="The VLC library not bundled with VLC so one can use things depending on the lib without installing VLC"
arch=('x86_64')
url='https://www.videolan.org/LibVLC/'
license=('LGPL2.1')
source=("https://archive.archlinux.org/packages/v/${_pkgname}/${_pkgname}-${_pkgver}-x86_64.pkg.tar.xz")
sha512sums=('c1181609c92f8e919b70deda1db07ce871894b22c317b72c85d0753f1e3b6bb0a933a91d1e5b374ad97c6eb54e8c1b109bfdc8b0048ed221a2fa74df6828864f')
package_libvlc() {
depends=('libvlccore')
provides=("libvlc=$pkgver" "vlc") # This should not provide vlc but all arch packages dep on vlc when they only need libvlc
conflicts=('vlc')
cd $srcdir/usr/lib
mkdir -p $pkgdir/usr/lib
install -Dm644 $pkgname.so.$pkgver $pkgdir/usr/lib/
ln -s /usr/lib/$pkgname.so.$pkgver $pkgdir/usr/lib/$pkgname.so.5
ln -s /usr/lib/$pkgname.so.$pkgver $pkgdir/usr/lib/$pkgname.so
}
package_libvlccore() {
depends=('libidn' 'dbus')
provides=(libvlccore=9.0.0)
_libver=9.0.0
cd $srcdir/usr/lib
mkdir -p $pkgdir/usr/lib
install -Dm644 $pkgname.so.$_libver $pkgdir/usr/lib/
ln -s /usr/lib/$pkgname.so.$_libver $pkgdir/usr/lib/$pkgname.so.9
ln -s /usr/lib/$pkgname.so.$_libver $pkgdir/usr/lib/$pkgname.so
}
|