2022-09-02 21:26:23 +00:00
|
|
|
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
|
2014-01-14 00:53:00 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2016-11-14 03:58:12 +00:00
|
|
|
# - enable omap, exynos, tegra, etnaviv for v7
|
2022-09-02 21:26:23 +00:00
|
|
|
# - move cairo to makedepends from checkdepends
|
2014-01-14 00:53:00 +00:00
|
|
|
|
|
|
|
pkgname=libdrm
|
2023-11-20 14:01:15 +00:00
|
|
|
pkgver=2.4.118
|
|
|
|
pkgrel=1
|
2014-01-14 00:53:00 +00:00
|
|
|
pkgdesc="Userspace interface to kernel DRM services"
|
2018-02-21 13:30:49 +00:00
|
|
|
url="https://dri.freedesktop.org/"
|
2017-12-24 20:34:15 +00:00
|
|
|
arch=(x86_64)
|
2014-01-14 00:53:00 +00:00
|
|
|
license=('custom')
|
2023-08-23 22:46:38 +00:00
|
|
|
depends=('libpciaccess' 'glibc')
|
2022-09-02 21:26:23 +00:00
|
|
|
makedepends=('python-docutils' 'meson' 'cairo')
|
2023-08-23 22:46:38 +00:00
|
|
|
optdepends=('cairo: needed for modetest tool')
|
2014-01-14 00:53:00 +00:00
|
|
|
replaces=('libdrm-new' 'libdrm-nouveau')
|
2020-11-16 14:55:17 +00:00
|
|
|
source=(https://dri.freedesktop.org/$pkgname/$pkgname-$pkgver.tar.xz{,.sig}
|
2015-05-07 13:49:36 +00:00
|
|
|
COPYING)
|
2023-11-20 14:01:15 +00:00
|
|
|
sha512sums=('2740ec10dfe96b520345c3f6f0d99a30aac95b1f96656bd9cd11269c2a83a9dac423da29d74a3deb55360e3ae2ca4a1de283e1e443667bedd22673f6629c9920'
|
2020-11-16 14:55:17 +00:00
|
|
|
'SKIP'
|
2017-04-13 12:38:33 +00:00
|
|
|
'b0ca349b882a4326b19f81f22804fabdb6fb7aef31cdc7b16b0a7ae191bfbb50c7daddb2fc4e6c33f1136af06d060a273de36f6f3412ea326f16fa4309fda660')
|
2022-07-08 19:51:41 +00:00
|
|
|
#validpgpkeys=('10A6D91DA1B05BD29F6DEBAC0C74F35979C486BE') # David Airlie <airlied@redhat.com>
|
2022-09-02 21:26:23 +00:00
|
|
|
validpgpkeys=('34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48') # emersion <contact@emersion.fr>
|
|
|
|
#validpgpkeys=('E9E246A89E65374EB8355796B8B5FA0EFC1EC2FE') # "Leo Liu <leo.liu@amd.com>"
|
2021-11-10 00:51:53 +00:00
|
|
|
#validpgpkeys=('899A810900B815807742E6D895A677A230AC4AA9') # Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
|
2022-06-06 12:48:14 +00:00
|
|
|
#validpgpkeys=('2617F6F8DEBB0A7A15C405C983FD600E340FB5FF') # Samuel Pitoiset <samuel.pitoiset@gmail.com>
|
2018-02-21 13:30:49 +00:00
|
|
|
|
|
|
|
build() {
|
2022-09-02 22:27:11 +00:00
|
|
|
[[ "$CARCH" == "armv7h" ]] && CONFIG="-Domap=enabled -Dexynos=enabled -Dtegra=enabled -Detnaviv=enabled"
|
2018-03-14 17:44:14 +00:00
|
|
|
arch-meson $pkgname-$pkgver build \
|
2023-11-19 16:10:50 +00:00
|
|
|
-D udev=true \
|
2022-09-02 21:26:23 +00:00
|
|
|
-D valgrind=disabled \
|
2022-10-02 19:33:19 +00:00
|
|
|
-D install-test-programs=true \
|
2018-03-14 17:44:14 +00:00
|
|
|
$CONFIG
|
2022-09-02 21:26:23 +00:00
|
|
|
meson compile -C build
|
2014-01-14 00:53:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2022-09-02 21:26:23 +00:00
|
|
|
meson test -C build --print-errorlogs
|
2014-01-14 00:53:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-09-02 21:26:23 +00:00
|
|
|
meson install -C build --destdir "$pkgdir"
|
2018-02-21 13:30:49 +00:00
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
|
2014-01-14 00:53:00 +00:00
|
|
|
}
|