mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
43 lines
1.5 KiB
Bash
43 lines
1.5 KiB
Bash
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - enable omap, exynos, tegra, etnaviv for v7
|
|
# - drop valgrind makdepend
|
|
|
|
pkgname=libdrm
|
|
pkgver=2.4.105
|
|
pkgrel=1
|
|
pkgdesc="Userspace interface to kernel DRM services"
|
|
url="https://dri.freedesktop.org/"
|
|
arch=(x86_64)
|
|
license=('custom')
|
|
depends=('libpciaccess')
|
|
makedepends=('python-docutils' 'meson')
|
|
checkdepends=('cairo')
|
|
replaces=('libdrm-new' 'libdrm-nouveau')
|
|
source=(https://dri.freedesktop.org/$pkgname/$pkgname-$pkgver.tar.xz{,.sig}
|
|
COPYING)
|
|
sha512sums=('083a04af7208e58be21b89c6ebdbe2db3ba00cd29f0d271bd38bfe97dfca741edafddaaf9b5b95c20fac2c9b700434ea5b21397de26f7073169ad6f5b090f715'
|
|
'SKIP'
|
|
'b0ca349b882a4326b19f81f22804fabdb6fb7aef31cdc7b16b0a7ae191bfbb50c7daddb2fc4e6c33f1136af06d060a273de36f6f3412ea326f16fa4309fda660')
|
|
validpgpkeys=('10A6D91DA1B05BD29F6DEBAC0C74F35979C486BE') # David Airlie <airlied@redhat.com>
|
|
validpgpkeys+=('34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48') # emersion <contact@emersion.fr>
|
|
validpgpkeys+=('E9E246A89E65374EB8355796B8B5FA0EFC1EC2FE') # "Leo Liu <leo.liu@amd.com>"
|
|
|
|
build() {
|
|
[[ "$CARCH" == "armv7h" ]] && CONFIG="-Domap=true -Dexynos=true -Dtegra=true -Detnaviv=true"
|
|
arch-meson $pkgname-$pkgver build \
|
|
-Dudev=false \
|
|
-Dvalgrind=false \
|
|
$CONFIG
|
|
ninja -C build
|
|
}
|
|
|
|
check() {
|
|
meson test -C build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install -C build
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
|
|
}
|