Skip to content

Commit d47caea

Browse files
committed
archlinuxcn: add wayfire-plugins-extra-git
1 parent 7007948 commit d47caea

File tree

3 files changed

+87
-0
lines changed

3 files changed

+87
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Maintainer: Librewish <librewish@gmail.com>
2+
3+
pkgname=wayfire-plugins-extra-git
4+
pkgver=r286.e8b974f
5+
pkgrel=1
6+
pkgdesc="3D wayland compositor extra plugins"
7+
arch=('any')
8+
url="https://github.com/WayfireWM/wayfire-plugins-extra"
9+
license=('MIT')
10+
depends=('wayfire-git' 'glibmm' 'iio-sensor-proxy' 'wayland-protocols' 'glm')
11+
makedepends=('git' 'meson' 'ninja' 'libdisplay-info' 'nlohmann-json' 'boost')
12+
optdepends=('wcm: GTK3-based configuration tool for the Wayfire compositor')
13+
provides=("${pkgname}" "wayfire-plugins-extra")
14+
conflicts=("wayfire-plugins-extra")
15+
replaces=()
16+
options=()
17+
source=('git+https://github.com/WayfireWM/wayfire-plugins-extra')
18+
sha256sums=('SKIP')
19+
install=wayfire-plugins-extra.install
20+
prepare() {
21+
cd "$srcdir/wayfire-plugins-extra"
22+
git submodule update --init --recursive
23+
}
24+
pkgver() {
25+
cd "$srcdir/wayfire-plugins-extra"
26+
27+
# Git, no tags available
28+
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
29+
30+
}
31+
32+
build() {
33+
arch-meson wayfire-plugins-extra build \
34+
-Denable_wayfire_shadows=true \
35+
-Denable_focus_request=true \
36+
-Denable_pixdecor=true \
37+
-Denable_filters=true
38+
ninja -C build
39+
}
40+
41+
42+
package() {
43+
DESTDIR="$pkgdir/" ninja -C build install
44+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
maintainers:
2+
- github: xiaohuirong
3+
email: horeamxiao@archlinuxcn.org
4+
5+
pre_build_script: aur_pre_build(maintainers=['kode54'])
6+
post_build: aur_post_build
7+
8+
update_on:
9+
- source: aur
10+
aur: wayfire-plugins-extra-git
11+
- source: github
12+
github: WayfireWM/wayfire-plugins-extra
13+
14+
repo_depends:
15+
- wayfire-git
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
msg() {
2+
ALL_OFF="\e[1;0m"
3+
BOLD="\e[1;1m"
4+
GREEN="${BOLD}\e[1;32m"
5+
local mesg=$1; shift
6+
printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&2
7+
}
8+
9+
post_upgrade() {
10+
msg "Attempting to enable iio-sensor-proxy service..."
11+
systemctl is-active iio-sensor-proxy >/dev/null || systemctl enable iio-sensor-proxy
12+
echo ""
13+
msg "services enabled."
14+
echo ""
15+
}
16+
17+
post_install() {
18+
msg "Attempting to enable iio-sensor-proxy service..."
19+
systemctl is-active iio-sensor-proxy >/dev/null || systemctl enable iio-sensor-proxy
20+
echo ""
21+
msg "services enabled."
22+
echo ""
23+
msg "services should now be enabled."
24+
msg "Reboot your system, so changes will take effect.."
25+
echo ""
26+
}
27+
28+
# vim: ts=2 sw=2 et:

0 commit comments

Comments
 (0)