65 lines
1.7 KiB
Bash
65 lines
1.7 KiB
Bash
#!/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 |---------------------------------------
|
|
|
|
##WARNING libgudev can not be built with eudev/libeudev as they provide ver 243 of udev
|
|
## and it requires at least ver 251, so we used a build of udev/libudev similar to
|
|
## artix based directly from udevd to build
|
|
## We will monitor the effects and wait for the eudev upstream to accomodate the
|
|
## the necessary changes
|
|
|
|
pkgname=libgudev
|
|
pkgver=238
|
|
pkgrel=01
|
|
pkgdesc="GObject bindings for libudev"
|
|
url="https://wiki.gnome.org/Projects/libgudev"
|
|
depends=(glib2)
|
|
makedepends=(gobject-introspection gtk-doc git meson umockdev vala)
|
|
_commit=df7c9c9940160307aaeb31347f4776a46f8736a9 # tags/238^0
|
|
source=("git+https://gitlab.gnome.org/GNOME/libgudev.git#commit=$_commit")
|
|
|
|
pkgver() {
|
|
cd libgudev
|
|
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd libgudev
|
|
|
|
# Use a locale with "," decimal separator that we
|
|
# actually have available in the build environments
|
|
sed -e 's/fr_FR\.UTF-8/de_DE.UTF-8/g' \
|
|
-i tests/meson.build tests/test-double.c
|
|
}
|
|
|
|
build() {
|
|
arch-meson libgudev build -D gtk_doc=true
|
|
meson compile -C build
|
|
}
|
|
|
|
# One test fails
|
|
#check() {
|
|
# meson test -C build --print-errorlogs
|
|
#}
|
|
|
|
package() {
|
|
depends+=(libg{lib,object}-2.0.so libudev.so)
|
|
provides+=(libgudev-1.0.so)
|
|
|
|
meson install -C build --destdir "$pkgdir"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(LGPL2.1)
|
|
|
|
sha256sums=(SKIP)
|
|
|
|
## 5ea24f45d14485b9cbe4aa6bc683059fe2e8b69a9355b47b38eb8a99da7c4e18 libgudev-238-01-x86_64.pkg.tar.lz
|
|
|