From 926bfd058b4d33f9d4b363d97d20cc722b94fcc6 Mon Sep 17 00:00:00 2001 From: oreo639 <31916379+Oreo639@users.noreply.github.com> Date: Thu, 10 Feb 2022 22:35:22 -0800 Subject: [PATCH 1/2] New package: power-profiles-daemon-0.10.1 --- .../files/power-profiles-daemon/run | 2 ++ srcpkgs/power-profiles-daemon/template | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 srcpkgs/power-profiles-daemon/files/power-profiles-daemon/run create mode 100644 srcpkgs/power-profiles-daemon/template diff --git a/srcpkgs/power-profiles-daemon/files/power-profiles-daemon/run b/srcpkgs/power-profiles-daemon/files/power-profiles-daemon/run new file mode 100644 index 000000000000..d34cc6b20a29 --- /dev/null +++ b/srcpkgs/power-profiles-daemon/files/power-profiles-daemon/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/libexec/power-profiles-daemon diff --git a/srcpkgs/power-profiles-daemon/template b/srcpkgs/power-profiles-daemon/template new file mode 100644 index 000000000000..a5ad7178c533 --- /dev/null +++ b/srcpkgs/power-profiles-daemon/template @@ -0,0 +1,19 @@ +# Template file for 'power-profiles-daemon' +pkgname=power-profiles-daemon +version=0.10.1 +revision=1 +build_style=meson +configure_args="-Dsystemdsystemunitdir=false" +hostmakedepends="pkg-config glib-devel" +makedepends="libglib-devel libgudev-devel upower0-devel polkit-devel" +checkdepends="libxml2 python3-dbusmock umockdev-devel" +short_desc="Makes power profiles handling available over D-Bus" +maintainer="oreo639 " +license="GPL-3.0-or-later" +homepage="https://gitlab.freedesktop.org/hadess/power-profiles-daemon" +distfiles="https://gitlab.freedesktop.org/hadess/power-profiles-daemon/-/archive/${version}/power-profiles-daemon-${version}.tar.gz" +checksum=dcba27018b573d69d34731b5454f6cdd6ec586d4ab18f923b45093a2c2af575f + +post_install() { + vsv power-profiles-daemon +} From 20c9b37d7ed2f6105fa3b5b856117cf55bc0f0da Mon Sep 17 00:00:00 2001 From: oreo639 <31916379+Oreo639@users.noreply.github.com> Date: Fri, 11 Feb 2022 00:34:11 -0800 Subject: [PATCH 2/2] New package: umockdev-0.17.6_1 --- common/shlibs | 1 + srcpkgs/libumockdev | 1 + srcpkgs/libumockdev-devel | 1 + srcpkgs/umockdev-devel | 1 + srcpkgs/umockdev/template | 44 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 48 insertions(+) create mode 120000 srcpkgs/libumockdev create mode 120000 srcpkgs/libumockdev-devel create mode 120000 srcpkgs/umockdev-devel create mode 100644 srcpkgs/umockdev/template diff --git a/common/shlibs b/common/shlibs index 39137dbe048f..82ab7ff2f203 100644 --- a/common/shlibs +++ b/common/shlibs @@ -213,6 +213,7 @@ libgirepository-everything-1.0.so libgirepository-1.30_1 libgirepository-1.0.so.1 libgirepository-1.30_1 libudev.so.1 eudev-libudev-1.6_1 libgudev-1.0.so.0 libgudev-230_1 +libumockdev.so.0 libumockdev-0.17.6_1 libext2fs.so.2 e2fsprogs-libs-1.41.5_1 libcom_err.so.2 e2fsprogs-libs-1.41.5_1 libe2p.so.2 e2fsprogs-libs-1.41.5_1 diff --git a/srcpkgs/libumockdev b/srcpkgs/libumockdev new file mode 120000 index 000000000000..6ea0730d6c1c --- /dev/null +++ b/srcpkgs/libumockdev @@ -0,0 +1 @@ +umockdev \ No newline at end of file diff --git a/srcpkgs/libumockdev-devel b/srcpkgs/libumockdev-devel new file mode 120000 index 000000000000..6ea0730d6c1c --- /dev/null +++ b/srcpkgs/libumockdev-devel @@ -0,0 +1 @@ +umockdev \ No newline at end of file diff --git a/srcpkgs/umockdev-devel b/srcpkgs/umockdev-devel new file mode 120000 index 000000000000..6ea0730d6c1c --- /dev/null +++ b/srcpkgs/umockdev-devel @@ -0,0 +1 @@ +umockdev \ No newline at end of file diff --git a/srcpkgs/umockdev/template b/srcpkgs/umockdev/template new file mode 100644 index 000000000000..5572efbbc032 --- /dev/null +++ b/srcpkgs/umockdev/template @@ -0,0 +1,44 @@ +# Template file for 'umockdev' +pkgname=umockdev +version=0.17.6 +revision=1 +build_style=meson +hostmakedepends="pkg-config vala" +makedepends="vala-devel eudev-libudev-devel libpcap-devel gobject-introspection" +checkdepends="eudev which gphoto2 libgudev-devel python3-gobject usbutils xz" +short_desc="Mock hardware devices for creating unit tests and bug reporting" +maintainer="oreo639 " +license="LGPL-2.1-or-later" +homepage="https://github.com/martinpitt/umockdev" +distfiles="https://github.com/martinpitt/umockdev/releases/download/${version}/umockdev-${version}.tar.xz" +checksum=5fad33377a2b1d4f2539f45509f6c74ddae578ac41ec82c2206bd74992dda129 + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" gobject-introspection qemu-user-static" +fi + +umockdev-devel_package() { + depends="umockdev>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove /usr/share/gir-1.0/UMockdev-1.0.gir + vmove /usr/share/vala/vapi/ + } +} + +libumockdev_package() { + short_desc+=" - library" + pkg_install() { + vmove /usr/lib/*.so.* + } +} + +libumockdev-devel_package() { + depends="libumockdev>=${version}_${revision}" + short_desc+=" - library development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove /usr/lib/*.so + } +}