From d81558e5bd3d66cf0eac539961a9f1c915c0b8c3 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Sat, 28 Aug 2021 09:23:53 +0000 Subject: [PATCH] add libglvnd --- gui/libglvnd/build.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 gui/libglvnd/build.sh diff --git a/gui/libglvnd/build.sh b/gui/libglvnd/build.sh new file mode 100644 index 0000000..a8d647b --- /dev/null +++ b/gui/libglvnd/build.sh @@ -0,0 +1,31 @@ +pkgname=libglvnd +pkgver=master + +fetch() { + curl -L "https://github.com/NVIDIA/libglvnd/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz + mkdir $pkgname-$pkgver/build +} + +build() { + cd $pkgname-$pkgver + cd build + meson .. \ + --buildtype=release \ + --prefix=/usr \ + --libexecdir=lib \ + -Dtls=disabled + samu +} + +package() { + cd $pkgname-$pkgver + cd build + DESTDIR=$pkgdir samu install +} + +license() { + cd $pkgname-$pkgver + cat LICENSE +# cat COPYING +}