add upower umockdev

This commit is contained in:
joborun linux 2022-09-08 13:53:51 +03:00
parent 5ce5828705
commit 22e5216525
11 changed files with 214 additions and 0 deletions

43
umockdev/PKGBUILD Normal file
View File

@ -0,0 +1,43 @@
#!/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=umockdev
pkgver=0.17.13
pkgrel=01
pkgdesc="Record/mock hardware devices for bug reports and regression tests w/o systemd"
arch=('x86_64')
url="https://github.com/martinpitt/umockdev/"
depends=('libgudev')
makedepends=('meson' 'gobject-introspection' 'gtk-doc' 'vala')
source=($pkgname-$pkgver.tar.gz::https://github.com/martinpitt/$pkgname/archive/$pkgver.tar.gz)
build() {
cd $pkgname-$pkgver
arch-meson -Dgtk_doc=true ../build
ninja -v -C ../build
}
check() {
cd $pkgname-$pkgver
meson test -C ../build --print-errorlogs
}
package() {
cd $pkgname-$pkgver
DESTDIR="${pkgdir}" meson install -C ../build
}
#---- license gpg-key sha256sums ----
license=('LGPL')
sha256sums=(d34227cc48be96da220f8ebeb1d2ae6ab88c751ae0db07c6ea875e37740acfe9) # umockdev-0.7.13.tar.gz

34
umockdev/PKGBUILD-arch Normal file
View File

@ -0,0 +1,34 @@
# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Marcin (CTRL) Wieczorek <marcin@marcin.co>
# Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
pkgname=umockdev
pkgver=0.17.13
pkgrel=1
pkgdesc="Record/mock hardware devices for bug reports and regression tests"
arch=('x86_64')
url="https://github.com/martinpitt/umockdev/"
license=('LGPL')
depends=('systemd' 'libgudev')
makedepends=('meson' 'gobject-introspection' 'gtk-doc' 'vala')
source=($pkgname-$pkgver.tar.gz::https://github.com/martinpitt/$pkgname/archive/$pkgver.tar.gz)
sha256sums=('d34227cc48be96da220f8ebeb1d2ae6ab88c751ae0db07c6ea875e37740acfe9')
build() {
cd $pkgname-$pkgver
arch-meson -Dgtk_doc=true ../build
ninja -v -C ../build
}
check() {
cd $pkgname-$pkgver
meson test -C ../build --print-errorlogs
}
package() {
cd $pkgname-$pkgver
DESTDIR="${pkgdir}" meson install -C ../build
}

1
umockdev/clean Normal file
View File

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

9
umockdev/deps Normal file
View File

@ -0,0 +1,9 @@
libgudev
meson
gobject-introspection
gtk-doc
vala
libmicrohttpd valgrind
libmicrohttpd valgrind
eudev

6
umockdev/time Normal file
View File

@ -0,0 +1,6 @@
real 0m7.164s
user 0m5.051s
sys 0m0.897s

53
upower/PKGBUILD Normal file
View File

@ -0,0 +1,53 @@
#!/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=upower
pkgver=1.90.0
pkgrel=01
pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics w/o systemd"
url="https://upower.freedesktop.org"
arch=(x86_64)
depends=(libimobiledevice libgudev)
makedepends=(docbook-xsl gobject-introspection python git gtk-doc meson)
checkdepends=(python-{dbus,dbusmock,gobject} umockdev)
backup=(etc/UPower/UPower.conf)
# options=(debug) ## uncomment this to have the debug pkg produced
_commit=d4259c009b3ca1169dfd19231a040c233fc3b58d # tags/v1.90.0^0
source=("git+https://gitlab.freedesktop.org/upower/upower.git#commit=$_commit")
pkgver() {
cd upower
git describe --tags | sed -e 's/^v\|^UPOWER_//;s/_/\./g;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd upower
}
build() {
arch-meson upower build \
-D systemdsystemunitdir=no
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
depends+=(libg{lib,object,io}-2.0.so)
provides+=(libupower-glib.so)
meson install -C build --destdir "$pkgdir"
}
#---- license gpg-key sha256sums ----
license=(GPL)
sha256sums=(SKIP)

43
upower/PKGBUILD-arch Normal file
View File

@ -0,0 +1,43 @@
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=upower
pkgver=1.90.0
pkgrel=1
pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics"
url="https://upower.freedesktop.org"
arch=(x86_64)
license=(GPL)
depends=(systemd libimobiledevice libgudev)
makedepends=(docbook-xsl gobject-introspection python git gtk-doc meson)
checkdepends=(python-{dbus,dbusmock,gobject} umockdev)
backup=(etc/UPower/UPower.conf)
options=(debug)
_commit=d4259c009b3ca1169dfd19231a040c233fc3b58d # tags/v1.90.0^0
source=("git+https://gitlab.freedesktop.org/upower/upower.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd upower
git describe --tags | sed -e 's/^v\|^UPOWER_//;s/_/\./g;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd upower
}
build() {
arch-meson upower build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
depends+=(libg{lib,object,io}-2.0.so)
provides+=(libupower-glib.so)
meson install -C build --destdir "$pkgdir"
}

1
upower/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {upower,src,pkg}

3
upower/configure vendored Normal file
View File

@ -0,0 +1,3 @@
option('systemdsystemunitdir',
description : 'Directory for systemd service files ("no" to disable)')
description : 'Directory for systemd service files')

15
upower/deps Normal file
View File

@ -0,0 +1,15 @@
cmake
eudev
gettext
libimobiledevice
libgudev
docbook-xsl
gobject-introspection
python
git
gtk-doc
meson
umockdev
dbus-python
python-gobject
python-dbusmock

6
upower/time Normal file
View File

@ -0,0 +1,6 @@
real 1m6.224s
user 0m47.668s
sys 0m7.490s