blob: 767b2b21fa8d8fc7ba61f5e9e70fff589514dd32 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libvpx
pkgver=1.6.1
pkgrel=1
pkgdesc="Library for the vp8 codec"
url="https://www.webmproject.org/"
arch="all"
license="GPL"
depends=""
makedepends="coreutils yasm bash perl"
subpackages="$pkgname-dev $pkgname-utils"
source="https://storage.googleapis.com/downloads.webmproject.org/releases/webm/$pkgname-$pkgver.tar.bz2
fix-arm-float-abi.patch
"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
# build fix for arm
export CROSS=" "
bash ./configure \
--enable-pic \
--enable-libs \
--enable-runtime-cpu-detect \
--enable-vp8 \
--enable-vp9 \
--enable-shared \
--disable-install-srcs \
--enable-postproc
make
}
package() {
cd "$builddir"
make DIST_DIR="$pkgdir"/usr install
chmod 644 "$pkgdir"/usr/include/vpx/*.h \
"$pkgdir"/usr/lib/pkgconfig/*
chown root:root -R "$pkgdir"
chmod 755 "$pkgdir"/usr/lib/*
}
utils() {
pkgdesc="VP8 utilities and tools"
install -d "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
sha512sums="1a4b009fe1737715c6563a79848126a5859394a5074b1e9cca9bc2e213df90890c15e708040d5f2c96c7c21e268f51e1352ac6911514bf891a4bf3eea154159d libvpx-1.6.1.tar.bz2
4eadbc2f4eb68eaff35cf85515aef271d6fd47293a53cba7b7a6e9e0fb71106dfb5ded45b9e9ba83264a91846e4a5fa4db42e39fc3eaff6ac37769e622f90f6c fix-arm-float-abi.patch"
|