main/x265: upgrade to 2.6; add check

This commit is contained in:
TBK 2017-12-01 17:10:24 +01:00 committed by Leonardo Arena
parent 7b05249a90
commit 16c7165fbd

View File

@ -1,16 +1,16 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com> # Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=x265 pkgname=x265
pkgver=2.5 pkgver=2.6
pkgrel=0 pkgrel=0
pkgdesc="Open Source H265/HEVC video encoder" pkgdesc="Open Source H265/HEVC video encoder"
url="https://bitbucket.org/multicoreware/x265" url="http://x265.org"
arch="all" arch="all"
license="GPL" license="GPL"
makedepends="cmake yasm" makedepends="cmake yasm" # 2.6+ will use nasm instead of yasm
subpackages="$pkgname-dev" subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/multicoreware/$pkgname/downloads/${pkgname}_${pkgver}.tar.gz" source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/multicoreware/$pkgname/downloads/${pkgname}_${pkgver}.tar.gz"
builddir="$srcdir/${pkgname}_$pkgver" builddir="$srcdir/${pkgname}_v$pkgver"
build() { build() {
cd "$builddir"/build/linux cd "$builddir"/build/linux
@ -31,10 +31,16 @@ build() {
make make
} }
check() {
cd "$builddir"/build/linux
./x265 --version
}
package() { package() {
cd "$builddir"/build/linux cd "$builddir"/build/linux
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }
sha512sums="f39b0b06a9f6ab9ab19fcdc1cba1578ace433e22dc8ec3f549ec3e5eeaaf40d17de6c7d419c12c16717ae795c45d953ef34a2fc9376d7e83eb7e9e74ab19ec93 x265-2.5.tar.gz" sha512sums="35c3716313e3dfd1555dd725b60f2b3b00a615d8b8d8267439722b52021d47e34eebf94b837b92a92d40c7ffab7b3198d6391365d62672b257c0a87d1db8a736 x265-2.6.tar.gz"