mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-19 22:05:36 +08:00
39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
# Contributions from Arch
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
|
|
# Contributor: kokoko3k <kokoko3k at gmail dot com>
|
|
# Contributor: Ionut Biru <ibiru at archlinux dot org>
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux dot org>
|
|
|
|
_pkgbasename=libva
|
|
pkgname=lib32-libva
|
|
pkgver=1.7.0
|
|
pkgrel=1
|
|
pkgdesc='Video Acceleration (VA) API for Linux (32-bit)'
|
|
arch=(x86_64)
|
|
url='https://freedesktop.org/wiki/Software/vaapi'
|
|
license=('MIT')
|
|
depends=(lib32-libdrm lib32-libgl lib32-wayland lib32-libxext lib32-libxfixes "$_pkgbasename=$pkgver" )
|
|
makedepends=(mesa lib32-gcc-libs)
|
|
optdepends=('lib32-libva-vdpau-driver: vdpau back-end for nvidia'
|
|
'lib32-libva-intel-driver: back-end for intel cards')
|
|
source=(http://freedesktop.org/software/vaapi/releases/libva/libva-${pkgver}.tar.bz2)
|
|
sha256sums=('a689bccbcc81a66b458e448377f108c057d3eee44a2e21a23c92c549dc8bc95f')
|
|
|
|
build() {
|
|
export CC='gcc -m32'
|
|
export CXX='g++ -m32'
|
|
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
|
|
|
|
cd "${pkgname#*-}-${pkgver}"
|
|
./configure --prefix=/usr --libdir='/usr/lib32'
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${pkgname#*-}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
rm -rfv "${pkgdir}/usr/"{include,bin}
|
|
install -m644 -D COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
|
|
}
|