main/kmscube: modernize (MR 1538)

This commit is contained in:
Bart Ribbers 2020-09-04 20:30:59 +02:00
parent 3609074ced
commit 4df6ae2017
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -1,7 +1,7 @@
# Maintainer: Zhuowei Zhang <zhuoweizhang@yahoo.com> # Maintainer: Zhuowei Zhang <zhuoweizhang@yahoo.com>
pkgname=kmscube pkgname=kmscube
pkgver=0_git20200401 pkgver=0_git20200401
pkgrel=0 pkgrel=1
_commit="4660a7dca6512b6e658759d00cff7d4ad2a2059d" _commit="4660a7dca6512b6e658759d00cff7d4ad2a2059d"
pkgdesc="Simple demo for testing kernel mode setting support" pkgdesc="Simple demo for testing kernel mode setting support"
url="https://gitlab.freedesktop.org/mesa/kmscube" url="https://gitlab.freedesktop.org/mesa/kmscube"
@ -13,18 +13,12 @@ options="!check" # No tests
builddir="$srcdir/kmscube-$_commit" builddir="$srcdir/kmscube-$_commit"
build() { build() {
meson \ abuild-meson . output
--prefix=/usr \ meson compile ${JOBS:+-j ${JOBS}} -C output
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
. output
ninja -C output
} }
package() { package() {
DESTDIR="$pkgdir" ninja -C output install DESTDIR="$pkgdir" meson install -C output
} }
sha512sums="6aeaeadb19d537b41ec2fd30fda660850b5a1eabe1795140c165144c0b1c7d1165c89e79efd7ea075be0b6db60796206b71c475263d8bb5e6e0d09c1753e61d5 kmscube-4660a7dca6512b6e658759d00cff7d4ad2a2059d.tar.gz" sha512sums="6aeaeadb19d537b41ec2fd30fda660850b5a1eabe1795140c165144c0b1c7d1165c89e79efd7ea075be0b6db60796206b71c475263d8bb5e6e0d09c1753e61d5 kmscube-4660a7dca6512b6e658759d00cff7d4ad2a2059d.tar.gz"