main/kmscube: update to new git snapshot (!342)

Upstream also provides the meson build system now, so use it.
This commit is contained in:
Luca Weiss 2019-05-04 12:49:56 +02:00 committed by Oliver Smith
parent d934c86f52
commit d3d2b8dfdb
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -1,32 +1,27 @@
pkgname=kmscube pkgname=kmscube
pkgver=1.0 pkgver=0_git20181211
pkgrel=0 pkgrel=0
pkgdesc="Simple demo for testing kernel modesetting support" pkgdesc="Simple demo for testing kernel modesetting support"
url="https://cgit.freedesktop.org/mesa/kmscube/" url="https://gitlab.freedesktop.org/mesa/kmscube"
arch="all" arch="all"
license="MIT" license="MIT"
depends="libdrm" depends="libdrm"
makedepends="mesa-dev autoconf automake" makedepends="mesa-dev meson"
_hash="0d8de4ce3a03f36af1817f9b0586d132ad2c5d2e" _commit="572b93d7080f1c089b8c236ad0bc932859e2712d"
source="https://cgit.freedesktop.org/mesa/kmscube/snapshot/${_hash}.tar.gz" source="https://gitlab.freedesktop.org/mesa/kmscube/-/archive/${_commit}/kmscube-${_commit}.tar.gz"
builddir="$srcdir/${_hash}" builddir="$srcdir/kmscube-${_commit}"
build(){ build(){
cd "$builddir" cd "$builddir"
./autogen.sh meson \
./configure \ -Dprefix=/usr \
--build=$CBUILD \ build
--host=$CHOST \ ninja -C build
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
} }
package() { package() {
cd "$builddir" cd "$builddir"/build
make DESTDIR="$pkgdir" install DESTDIR="$pkgdir" ninja install
} }
sha512sums="5316973de5752aa02a10124900ffa92b950a045626ad68817515143e756da37c38dfaae18e3874791eca2aa094b7f51818dac60a44929c117177f65eea04d835 0d8de4ce3a03f36af1817f9b0586d132ad2c5d2e.tar.gz" sha512sums="235e00111dbbcf8b333fa118b3aabafb903409019e438e357a8d8e622687f216d67c331a41c19ccc251722d40b7f45321fcd0c1dc8cc8741d70aab2b464bedab kmscube-572b93d7080f1c089b8c236ad0bc932859e2712d.tar.gz"