aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-11 00:02:55 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-17 13:39:33 +0000
commit71c9b7566d831e6a16d7a44df06a940800b270e5 (patch)
tree81fedf63e2c0487550ee1b9af2bbee1e8edcceec /main
parent1ccbed28305f9c66f2c6311876728646909cc5b1 (diff)
downloadaports-71c9b7566d831e6a16d7a44df06a940800b270e5.tar.bz2
aports-71c9b7566d831e6a16d7a44df06a940800b270e5.tar.xz
main/libva-intel-driver: modernise, add check
Diffstat (limited to 'main')
-rw-r--r--main/libva-intel-driver/APKBUILD34
1 files changed, 16 insertions, 18 deletions
diff --git a/main/libva-intel-driver/APKBUILD b/main/libva-intel-driver/APKBUILD
index 8995d76f40..96e5186863 100644
--- a/main/libva-intel-driver/APKBUILD
+++ b/main/libva-intel-driver/APKBUILD
@@ -2,28 +2,22 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libva-intel-driver
pkgver=2.0.0
-pkgrel=0
-pkgdesc="VA-API implementation for Intel G45 chipsets and Intel HD Graphics for Intel Core processor family"
+pkgrel=1
+pkgdesc="VA-API implementation for Intel GMA chipsets and Intel HD Graphics"
url="http://freedesktop.org/wiki/Software/vaapi"
arch="x86 x86_64"
license="MIT"
depends=""
-depends_dev="libdrm-dev libva-dev"
-makedepends="$depends_dev autoconf automake libtool"
+makedepends="libdrm-dev libva-dev autoconf automake libtool"
install=""
subpackages=""
install_if="libva xf86-video-intel"
source="${pkgname}-${pkgver}.tar.bz2::https://github.com/01org/intel-vaapi-driver/releases/download/${pkgver}/intel-vaapi-driver-${pkgver}.tar.bz2"
-_builddir="$srcdir"/intel-vaapi-driver-$pkgver
+builddir="$srcdir"/intel-vaapi-driver-$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
+ cd "$builddir"
+ default_prepare
# we need to regen the configure script which will unconditionally
# depend on wayland scanner otherwise
libtoolize --force && aclocal -I m4 && autoconf \
@@ -31,7 +25,7 @@ prepare() {
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -39,14 +33,18 @@ build() {
--enable-x11 \
--disable-wayland \
--disable-static \
- --enable-shared \
- || return 1
- make || return 1
+ --enable-shared
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
sha512sums="a1ca679e1e928a56d369140f3a129a5ed66668d37e25b6115712d406d58fdc9cdce16df22361b91356ea267a558eaf30789d9eba0d415bf2e5ca559d983d0c27 libva-intel-driver-2.0.0.tar.bz2"