add chrpath cmocka cython dbus-glib libglvnd

This commit is contained in:
joborun linux 2023-08-15 01:23:10 +03:00
parent 1a4053bd35
commit 3641026349
29 changed files with 711 additions and 0 deletions

44
chrpath/PKGBUILD Normal file
View File

@ -0,0 +1,44 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=chrpath
pkgver=0.16
pkgrel=04
pkgdesc="Change or delete the rpath or runpath in ELF files"
url="https://directory.fsf.org/project/chrpath/"
depends=('glibc')
source=("https://deb.debian.org/debian/pool/main/c/chrpath/chrpath_$pkgver.orig.tar.gz")
prepare() {
cd "${srcdir}"/$pkgname-$pkgver
# rm -f config.guess
# aclocal
# libtoolize
# automake --add-missing
# autoconf
}
build() {
cd "${srcdir}"/$pkgname-$pkgver
./configure --prefix=/usr --mandir=/usr/share/man
make
}
package() {
cd "${srcdir}"/$pkgname-$pkgver
make DESTDIR="${pkgdir}" docdir=/usr/share/doc/chrpath install
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL2')
sha256sums=(bb0d4c54bac2990e1bdf8132f2c9477ae752859d523e141e72b3b11a12c26e7b) # chrpath_0.16.orig.tar.gz
## 6b96f323fde9ddbec8e4a7c01faa9604f3fb50ccb83f332a2546f9894c089d81 chrpath-0.16-04-x86_64.pkg.tar.lz

34
chrpath/PKGBUILD-arch Normal file
View File

@ -0,0 +1,34 @@
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
pkgname=chrpath
pkgver=0.16
pkgrel=4
pkgdesc="Change or delete the rpath or runpath in ELF files"
arch=('x86_64')
url="https://directory.fsf.org/project/chrpath/"
license=('GPL2')
depends=('glibc')
source=("https://deb.debian.org/debian/pool/main/c/chrpath/chrpath_$pkgver.orig.tar.gz")
md5sums=('2bf8d1d1ee345fc8a7915576f5649982')
sha256sums=('bb0d4c54bac2990e1bdf8132f2c9477ae752859d523e141e72b3b11a12c26e7b')
prepare() {
cd "${srcdir}"/$pkgname-$pkgver
# rm -f config.guess
# aclocal
# libtoolize
# automake --add-missing
# autoconf
}
build() {
cd "${srcdir}"/$pkgname-$pkgver
./configure --prefix=/usr --mandir=/usr/share/man
make
}
package() {
cd "${srcdir}"/$pkgname-$pkgver
make DESTDIR="${pkgdir}" docdir=/usr/share/doc/chrpath install
}

1
chrpath/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,chrpa*.tar.gz}

2
chrpath/deps Normal file
View File

@ -0,0 +1,2 @@

6
chrpath/time Normal file
View File

@ -0,0 +1,6 @@
real 0m4.766s
user 0m2.960s
sys 0m0.900s

55
cmocka/PKGBUILD Normal file
View File

@ -0,0 +1,55 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=cmocka
pkgver=1.1.7
pkgrel=01
pkgdesc='Elegant unit testing framework for C with support for mock objects'
url='https://cmocka.org/'
depends=('glibc')
makedepends=('cmake')
source=(https://cmocka.org/files/1.1/cmocka-${pkgver}.tar.xz{,.asc})
options=('!lto')
prepare() {
cd ${pkgname}-${pkgver}
mkdir build
}
build() {
cd ${pkgname}-${pkgver}/build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DUNIT_TESTING=ON
make
}
check() {
cd ${pkgname}-${pkgver}/build
make test
}
package() {
cd ${pkgname}-${pkgver}/build
make install DESTDIR="${pkgdir}"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('Apache')
validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn@cryptomilk.org>
sha256sums=(810570eb0b8d64804331f82b29ff47c790ce9cd6b163e98d47a4807047ecad82 # cmocka-1.1.7.tar.xz
607e9efb2216d9bb6bf90fe3d12b32f56e71c9f89e5340e8141b313b6a2e63eb) # cmocka-1.1.7.tar.xz.asc
## 06e060b01779e7a472c7f07e9a29ae1d68e40df5a04ab70f23db9e56b82da4f6 cmocka-1.1.7-01-x86_64.pkg.tar.lz

44
cmocka/PKGBUILD-arch Normal file
View File

@ -0,0 +1,44 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
pkgname=cmocka
pkgver=1.1.7
pkgrel=1
pkgdesc='Elegant unit testing framework for C with support for mock objects'
url='https://cmocka.org/'
arch=('x86_64')
license=('Apache')
depends=('glibc')
makedepends=('cmake')
source=(https://cmocka.org/files/1.1/cmocka-${pkgver}.tar.xz{,.asc})
sha512sums=('fe451893474dce1270e12af707a9a8fe1f0217e1782b4e1a67d25dadf56ff4a5e7dbc9ba4431f774aedffa46a40a28a6a0488df24feefb2f93e90fd2369c2c88'
'SKIP')
validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn@cryptomilk.org>
options=('!lto')
prepare() {
cd ${pkgname}-${pkgver}
mkdir build
}
build() {
cd ${pkgname}-${pkgver}/build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DUNIT_TESTING=ON
make
}
check() {
cd ${pkgname}-${pkgver}/build
make test
}
package() {
cd ${pkgname}-${pkgver}/build
make install DESTDIR="${pkgdir}"
}
# vim: ts=2 sw=2 et:

1
cmocka/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,cmocka*.tar.xz*}

1
cmocka/deps Normal file
View File

@ -0,0 +1 @@
cmake

1
cmocka/key Normal file
View File

@ -0,0 +1 @@
gpg -v --recv-key 7EE0FC4DCC014E3D

6
cmocka/time Normal file
View File

@ -0,0 +1,6 @@
real 0m14.398s
user 0m10.869s
sys 0m3.830s

65
cython/PKGBUILD Normal file
View File

@ -0,0 +1,65 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=cython
pkgver=3.0.0
pkgrel=01
pkgdesc='C-Extensions for Python'
url='https://cython.org'
depends=(python)
replaces=(cython-dev)
makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-pytest gdb python-numpy)
source=(https://github.com/cython/cython/archive/$pkgver/$pkgname-$pkgver.tar.gz)
build() {
cd cython-$pkgver
python -m build --wheel --no-isolation
}
#check() {
# cd cython-$pkgver
# python -m venv --system-site-packages test-env
# test-env/bin/python -m installer dist/*.whl
# test-env/bin/python -m pytest -v --ignore docs \
# --ignore pyximport/test/test_reload.py \
# --ignore Cython/Debugger/Tests
#}
### failed tests
#========================================== short test summary info ===========================================
#FAILED Tools/dataclass_test_data/test_dataclasses.py::TestStringAnnotations::test_classvar_module_level_import - ImportError: cannot import name 'dataclass_module_1' from 'test' (unknown location)
#FAILED Tools/dataclass_test_data/test_dataclasses.py::TestStringAnnotations::test_text_annotations - ImportError: cannot import name 'dataclass_textanno' from 'test' (unknown location)
#FAILED Tools/dataclass_test_data/test_dataclasses.py::TestAbstract::test_maintain_abc - AssertionError: "class Date without an implementation for abstract method foo" does not match "Can't inst...
#FAILED pyximport/test/test_pyximport.py::test_with_reload - ModuleNotFoundError: No module named 'dummy'
#FAILED pyximport/test/test_pyximport.py::test_zip - ModuleNotFoundError: No module named 'test_zip_module'
#FAILED tests/run/test_grammar.py::TokenTests::test_eof_error - AssertionError: 'unexpected EOF' not found in "'(' was never closed (<test>, line 1)"
#FAILED tests/run/test_grammar.py::GrammarTests::testAssert2 - AssertionError: 'msg\nassert 0' != 'msg'
#FAILED tests/run/test_grammar.py::GrammarTests::test_funcdef - AssertionError: {'return': <class 'list'>} != {'return': 'list'}
#FAILED tests/run/test_grammar.py::GrammarTests::test_var_annot_basic_semantics - AssertionError: {'_C__foo': <class 'int'>, 's': <class 'str'>} != {'_C__foo': 'int', 's': 'str'}
#=========================== 9 failed, 440 passed, 12 skipped, 2 warnings in 3.65s ============================
package() {
cd cython-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
for f in cygdb cython cythonize; do
mv "$pkgdir"/usr/bin/$f "$pkgdir"/usr/bin/${f}3
ln -s ${f}3 "$pkgdir"/usr/bin/$f
done
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(APACHE)
sha256sums=(1acaf0abe3edfad06cc98b4ab2499b20714a6fe11c4ef1afb4751f2a8e9208af) # cython-3.0.0.tar.gz
## 3f48d733962a3d8f5ab70234fc064f03e80f588d496d01de04f623f8c1b1f580 cython-3.0.0-01-x86_64.pkg.tar.lz

41
cython/PKGBUILD-arch Normal file
View File

@ -0,0 +1,41 @@
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Igor Scabini <furester @ gmail.com>
pkgname=cython
pkgver=3.0.0
pkgrel=1
pkgdesc='C-Extensions for Python'
arch=(x86_64)
url='https://cython.org'
license=(APACHE)
depends=(python)
replaces=(cython-dev)
makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-pytest gdb python-numpy)
source=(https://github.com/cython/cython/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('1acaf0abe3edfad06cc98b4ab2499b20714a6fe11c4ef1afb4751f2a8e9208af')
build() {
cd cython-$pkgver
python -m build --wheel --no-isolation
}
#check() {
# cd cython-$pkgver
# python -m venv --system-site-packages test-env
# test-env/bin/python -m installer dist/*.whl
# test-env/bin/python -m pytest -v --ignore docs \
# --ignore pyximport/test/test_reload.py \
# --ignore Cython/Debugger/Tests
#}
package() {
cd cython-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
for f in cygdb cython cythonize; do
mv "$pkgdir"/usr/bin/$f "$pkgdir"/usr/bin/${f}3
ln -s ${f}3 "$pkgdir"/usr/bin/$f
done
}

1
cython/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,cython*.tar.gz}

10
cython/deps Normal file
View File

@ -0,0 +1,10 @@
python-setuptools
python-build
python-installer
python-wheel
python-pytest
gdb
python-numpy

6
cython/time Normal file
View File

@ -0,0 +1,6 @@
real 1m6.860s
user 1m4.980s
sys 0m3.672s

57
dbus-glib/PKGBUILD Normal file
View File

@ -0,0 +1,57 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=dbus-glib
pkgver=0.112
pkgrel=03
pkgdesc="GLib bindings for DBUS (deprecated)"
url="https://www.freedesktop.org/wiki/Software/dbus/"
depends=('dbus' 'expat' 'glib2' 'glibc')
makedepends=('python')
source=(https://dbus.freedesktop.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
dbus-glib-bash-completion.patch::https://gitlab.freedesktop.org/dbus/dbus-glib/-/merge_requests/5.patch)
prepare() {
patch -d $pkgname-$pkgver -Np1 -i ../dbus-glib-bash-completion.patch # Fix bash completion
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib \
--disable-gtk-doc \
--enable-tests
make
}
check() {
cd $pkgname-$pkgver
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install completiondir='$(datadir)/bash-completion/completions'
mv "$pkgdir/usr/share/bash-completion/completions/"{dbus-bash-completion.sh,dbus-send}
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL')
validpgpkeys=('DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90')
sha256sums=(7d550dccdfcd286e33895501829ed971eeb65c614e73aadb4a08aeef719b143a # dbus-glib-0.112.tar.gz
649f1dff0ed50192f607d090c446ec4a2f8b39d1af1e1b34cdf7d868ebe105fe # dbus-glib-0.112.tar.gz.asc
edbdd4fb5fce358b427da1a1c68347ce09ca444da6ac67ff1fcd6cc67fc92f99) # dbus-glib-bash-completion.patch
## 11ca262a2a472a9581654ef04d27fdd7147756d133fdaff3c9ce74cf5c414892 dbus-glib-0.112-03-x86_64.pkg.tar.lz

44
dbus-glib/PKGBUILD-arch Normal file
View File

@ -0,0 +1,44 @@
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=dbus-glib
pkgver=0.112
pkgrel=3
pkgdesc='GLib bindings for D-Bus (deprecated)'
arch=('x86_64')
url='https://www.freedesktop.org/wiki/Software/dbus/'
license=('GPL')
depends=('dbus' 'expat' 'glib2' 'glibc')
makedepends=('python')
source=("https://dbus.freedesktop.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc}
'dbus-glib-bash-completion.patch::https://gitlab.freedesktop.org/dbus/dbus-glib/-/merge_requests/5.patch')
sha256sums=('7d550dccdfcd286e33895501829ed971eeb65c614e73aadb4a08aeef719b143a'
'SKIP'
'edbdd4fb5fce358b427da1a1c68347ce09ca444da6ac67ff1fcd6cc67fc92f99')
validpgpkeys=('DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90')
prepare() {
patch -d $pkgname-$pkgver -Np1 -i ../dbus-glib-bash-completion.patch # Fix bash completion
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib \
--enable-tests
make
}
check() {
cd $pkgname-$pkgver
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install completiondir='$(datadir)/bash-completion/completions'
mv "$pkgdir/usr/share/bash-completion/completions/"{dbus-bash-completion.sh,dbus-send}
}

1
dbus-glib/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,dbus-glib*.tar.gz*}

View File

@ -0,0 +1,162 @@
From 484e483d1fb98b56ebd2cb7d73a7f0851f7b4ab5 Mon Sep 17 00:00:00 2001
From: Koki Fukuda <ko.fu.dev@gmail.com>
Date: Wed, 5 May 2021 21:59:34 +0900
Subject: [PATCH] Fix bash completion and its helper
This fixes the following errors:
* Completion script causing an usage error.
* Better error handling in helper program in case the bus
is inaccessible.
---
dbus/dbus-bash-completion-helper.c | 43 ++++++++++++++++++++++++++++++
dbus/dbus-bash-completion.sh.in | 3 +--
2 files changed, 44 insertions(+), 2 deletions(-)
diff --git a/dbus/dbus-bash-completion-helper.c b/dbus/dbus-bash-completion-helper.c
index 6240ed6..2dcae22 100644
--- a/dbus/dbus-bash-completion-helper.c
+++ b/dbus/dbus-bash-completion-helper.c
@@ -56,6 +56,11 @@ print_services (DBusConnection *connection)
-1,
&error);
dbus_message_unref (message);
+
+ if (reply == NULL) {
+ goto fail;
+ }
+
dbus_message_iter_init (reply, &iter);
dbus_message_iter_recurse (&iter, &iter_array);
while (dbus_message_iter_get_arg_type (&iter_array) != DBUS_TYPE_INVALID)
@@ -77,6 +82,11 @@ print_services (DBusConnection *connection)
-1,
&error);
dbus_message_unref (message);
+
+ if (reply == NULL) {
+ goto fail;
+ }
+
dbus_message_iter_init (reply, &iter);
dbus_message_iter_recurse (&iter, &iter_array);
while (dbus_message_iter_get_arg_type (&iter_array) != DBUS_TYPE_INVALID)
@@ -86,6 +96,9 @@ print_services (DBusConnection *connection)
dbus_message_iter_next (&iter_array);
}
dbus_message_unref (reply);
+
+ fail:
+ dbus_error_free(&error);
}
static gboolean
@@ -139,6 +152,11 @@ print_objects (DBusConnection *connection, const char *service_name, const char
-1,
&error);
dbus_message_unref (message);
+
+ if (reply == NULL) {
+ goto fail;
+ }
+
dbus_message_iter_init (reply, &iter);
dbus_message_iter_get_basic (&iter, &introspection_xml);
@@ -167,6 +185,9 @@ print_objects (DBusConnection *connection, const char *service_name, const char
node_info_unref (root);
dbus_message_unref (reply);
+
+ fail:
+ dbus_error_free(&error);
}
static gboolean
@@ -192,6 +213,11 @@ is_object_path_with_interfaces (DBusConnection *connection, const char *service_
-1,
&error);
dbus_message_unref (message);
+
+ if (reply == NULL) {
+ goto fail;
+ }
+
dbus_message_iter_init (reply, &iter);
dbus_message_iter_get_basic (&iter, &introspection_xml);
@@ -203,6 +229,9 @@ is_object_path_with_interfaces (DBusConnection *connection, const char *service_
node_info_unref (root);
dbus_message_unref (reply);
+ fail:
+ dbus_error_free(&error);
+
return ret;
}
@@ -228,6 +257,11 @@ print_methods (DBusConnection *connection, const char *service_name, const char
-1,
&error);
dbus_message_unref (message);
+
+ if (reply == NULL) {
+ goto fail;
+ }
+
dbus_message_iter_init (reply, &iter);
dbus_message_iter_get_basic (&iter, &introspection_xml);
@@ -247,6 +281,9 @@ print_methods (DBusConnection *connection, const char *service_name, const char
}
node_info_unref (root);
dbus_message_unref (reply);
+
+ fail:
+ dbus_error_free(&error);
}
static void
@@ -285,6 +322,11 @@ print_signature (DBusConnection *connection, const char *service_name, const cha
-1,
&error);
dbus_message_unref (message);
+
+ if (reply == NULL) {
+ goto fail;
+ }
+
dbus_message_iter_init (reply, &iter);
dbus_message_iter_get_basic (&iter, &introspection_xml);
@@ -324,6 +366,7 @@ print_signature (DBusConnection *connection, const char *service_name, const cha
node_info_unref (root);
dbus_message_unref (reply);
fail:
+ dbus_error_free(&error);
g_free (method_name);
g_free (interface_name);
}
diff --git a/dbus/dbus-bash-completion.sh.in b/dbus/dbus-bash-completion.sh.in
index a7751da..e582438 100644
--- a/dbus/dbus-bash-completion.sh.in
+++ b/dbus/dbus-bash-completion.sh.in
@@ -5,7 +5,6 @@
################################################################################
__dbus_send() {
- local IFS=$'\n'
local cur="${COMP_WORDS[COMP_CWORD]}"
# --name=value style option
@@ -13,7 +12,7 @@ __dbus_send() {
cur=${cur/*=/}
fi
- COMPREPLY=($(compgen -W "$(@libexecdir@/dbus-bash-completion-helper dbus-send ${COMP_WORDS[@]:0})" -- $cur))
+ COMPREPLY=($(compgen -W "$(@libexecdir@/dbus-bash-completion-helper dbus-send "${COMP_LINE}")" -- $cur))
}
################################################################################
--
GitLab

3
dbus-glib/deps Normal file
View File

@ -0,0 +1,3 @@
python

1
dbus-glib/key Normal file
View File

@ -0,0 +1 @@
gpg -v --recv-key 4DE8FF2A63C7CC90

6
dbus-glib/time Normal file
View File

@ -0,0 +1,6 @@
real 0m15.025s
user 0m13.102s
sys 0m2.395s

26
libglvnd/LICENSE Normal file
View File

@ -0,0 +1,26 @@
Copyright (c) 2013, NVIDIA CORPORATION.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
unaltered in all copies or substantial portions of the Materials.
Any additions, deletions, or changes to the original source files
must be clearly indicated in accompanying documentation.
If only executable code is distributed, then the accompanying
documentation must state that "this software is based in part on the
work of the Khronos Group."
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.

48
libglvnd/PKGBUILD Normal file
View File

@ -0,0 +1,48 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libglvnd
pkgver=1.6.0
pkgrel=01
pkgdesc="The GL Vendor-Neutral Dispatch library"
url="https://gitlab.freedesktop.org/glvnd/libglvnd"
makedepends=('libxext' 'libx11' 'xorgproto' 'python' 'meson')
provides=('libgl' 'libegl' 'libgles')
provides+=(libEGL.so libGL.so libGLESv2.so libGLX.so libGLdispatch.so libOpenGL.so)
source=("https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v$pkgver/libglvnd-v$pkgver.tar.gz"
LICENSE)
build() {
arch-meson $pkgname-v$pkgver build \
-D gles1=false
meson compile -C build
}
package() {
# libglvnd needs mesa for indirect rendering
depends=('libxext' 'mesa' 'opengl-driver')
meson install -C build --destdir "$pkgdir"
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('custom:BSD-like')
sha512sums=('8b8be80d94da7d9ffe58dccbcd5bd8079e86326a3a1a880ff1f7bf6f2d74eb5143cd3783fc2d8119fed597b3376e33f34ed889cc2259073dfd1d6c985a739df6'
'bf0f4a7e04220a407400f89226ecc1f798cc43035f2538cc8860e5088e1f84140baf0d4b0b28f66e4b802d4d6925769a1297c24e1ba39c1c093902b2931781a5')
sha256sums=(efc756ffd24b24059e1c53677a9d57b4b237b00a01c54a6f1611e1e51661d70c # libglvnd-v1.6.0.tar.gz
1a99f7487849c41fc3520e0af3dfcf28a0df05e78956d9ec58c2c52b1f20a77d) # LICENSE
## 68792f0c05a6302a198753aea46b81a901f816d6904487d14e5edb324e82ff3f libglvnd-1.6.0-01-x86_64.pkg.tar.lz

32
libglvnd/PKGBUILD-arch Normal file
View File

@ -0,0 +1,32 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=libglvnd
pkgver=1.6.0
pkgrel=1
pkgdesc="The GL Vendor-Neutral Dispatch library"
arch=('x86_64')
url="https://gitlab.freedesktop.org/glvnd/libglvnd"
license=('custom:BSD-like')
makedepends=('libxext' 'libx11' 'xorgproto' 'python' 'meson')
provides=('libgl' 'libegl' 'libgles')
provides+=(libEGL.so libGL.so libGLESv2.so libGLX.so libGLdispatch.so libOpenGL.so)
source=("https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v$pkgver/libglvnd-v$pkgver.tar.gz"
LICENSE)
sha512sums=('8b8be80d94da7d9ffe58dccbcd5bd8079e86326a3a1a880ff1f7bf6f2d74eb5143cd3783fc2d8119fed597b3376e33f34ed889cc2259073dfd1d6c985a739df6'
'bf0f4a7e04220a407400f89226ecc1f798cc43035f2538cc8860e5088e1f84140baf0d4b0b28f66e4b802d4d6925769a1297c24e1ba39c1c093902b2931781a5')
build() {
arch-meson $pkgname-v$pkgver build \
-D gles1=false
meson compile -C build
}
package() {
# libglvnd needs mesa for indirect rendering
depends=('libxext' 'mesa' 'opengl-driver')
meson install -C build --destdir "$pkgdir"
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}

1
libglvnd/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,libglvnd*.tar.gz*}

6
libglvnd/deps Normal file
View File

@ -0,0 +1,6 @@
libxext
libx11
xorgproto
python
meson

6
libglvnd/time Normal file
View File

@ -0,0 +1,6 @@
real 0m12.428s
user 0m29.365s
sys 0m3.714s