2020-01-06 09:40:54 +00:00
|
|
|
# Contributor: Zhuowei Zhang <zhuoweizhang@yahoo.com>
|
|
|
|
# Maintainer: Zhuowei Zhang <zhuoweizhang@yahoo.com>
|
2017-10-09 19:00:35 +00:00
|
|
|
pkgname=kmscube
|
2019-11-04 19:44:30 +00:00
|
|
|
pkgver=0_git20190918
|
2020-01-06 09:40:54 +00:00
|
|
|
pkgrel=1
|
|
|
|
_commit="76bb57d539cb43d267e561024c34e031bf351e04"
|
2019-11-04 19:44:30 +00:00
|
|
|
pkgdesc="Simple demo for testing kernel mode setting support"
|
2019-05-04 10:49:56 +00:00
|
|
|
url="https://gitlab.freedesktop.org/mesa/kmscube"
|
2017-10-09 19:00:35 +00:00
|
|
|
arch="all"
|
|
|
|
license="MIT"
|
2019-11-04 19:44:30 +00:00
|
|
|
makedepends="libdrm-dev libpng-dev mesa-dev meson"
|
2020-01-06 09:40:54 +00:00
|
|
|
source="https://gitlab.freedesktop.org/mesa/kmscube/-/archive/$_commit/kmscube-$_commit.tar.gz"
|
2019-11-04 19:44:30 +00:00
|
|
|
options="!check" # No tests
|
2020-01-06 09:40:54 +00:00
|
|
|
builddir="$srcdir/kmscube-$_commit"
|
2017-10-09 19:00:35 +00:00
|
|
|
|
2019-11-04 19:44:30 +00:00
|
|
|
build() {
|
2019-05-04 10:49:56 +00:00
|
|
|
meson \
|
2019-11-04 19:44:30 +00:00
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--buildtype=release \
|
2020-01-06 09:40:54 +00:00
|
|
|
. output
|
|
|
|
ninja -C output
|
2017-10-09 19:00:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-01-06 09:40:54 +00:00
|
|
|
DESTDIR="$pkgdir" ninja -C output install
|
2017-10-09 19:00:35 +00:00
|
|
|
}
|
|
|
|
|
2019-11-04 19:44:30 +00:00
|
|
|
sha512sums="fe781e64eda7f18e55364872e60756e536a0806b08cc7ccd97c86a0ba123ca7bb974de62c8a73b5c1d5b01a16a1172e6269dcb0e76583ae33874d52c376e0d26 kmscube-76bb57d539cb43d267e561024c34e031bf351e04.tar.gz"
|