blob: 73172c4a9075e8dfa4c870ad87f61b5a757868b6 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=libde265
pkgver=0.9
pkgrel=1
pkgdesc="Open h.265 video codec implementation"
url="https://github.com/strukturag/libde265"
arch="all"
license="LGPL"
depends=""
depends_dev=""
makedepends="$depends_dev qt5-qtbase-dev sdl-dev ffmpeg-dev"
install=""
subpackages="$pkgname-dev $pkgname-dec $pkgname-sherlock"
source="https://github.com/strukturag/libde265/releases/download/v$pkgver/libde265-$pkgver.tar.gz"
_builddir="$srcdir"/libde265-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
dec() {
pkgname="libde265 decoder"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/dec265 \
"$subpkgdir"/usr/bin/ || return 1
}
sherlock() {
pkgname="libde265 Qt-based video player"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/sherlock265 \
"$subpkgdir"/usr/bin/ || return 1
}
md5sums="09613faccdc87960700c87baabf10ff6 libde265-0.9.tar.gz"
sha256sums="b6791191f0a936dd99cad41fdf04e1a97d9ac902f8b8e01416266bb050fa1930 libde265-0.9.tar.gz"
sha512sums="bf4250285b72b63e3856530c585511321cf35741ac2a2365a008122ae202d167eed790278746a878fb33e3093d8db5ed3590c32ef369cb3f529037bdadf323fa libde265-0.9.tar.gz"
|