Skip to content

Commit 1fc879c

Browse files
committed
update scenefx and swayfx to use proper deps
1 parent e46cbdf commit 1fc879c

File tree

6 files changed

+39
-46
lines changed

6 files changed

+39
-46
lines changed

.github/workflows/aur_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
pkgname: [ swayfx, swayfx-git, scenefx-0.1, scenefx-0.2, scenefx, scenefx-git ]
21+
pkgname: [ swayfx, swayfx-git, scenefx-0.1, scenefx-0.2, scenefx-0.3, scenefx-git ]
2222

2323
name: Test PKGBUILD ${{matrix.pkgname}}
2424
runs-on: ubuntu-latest

.github/workflows/aur_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
3030
- pkgname: scenefx-0.1
3131
- pkgname: scenefx-0.2
32-
- pkgname: scenefx
32+
- pkgname: scenefx-0.3
3333
- pkgname: scenefx-git
3434

3535
runs-on: ubuntu-latest
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
pkgbase = scenefx
1+
pkgbase = scenefx0.3
22
pkgdesc = A drop-in replacement for the wlroots scene API that allows wayland compositors to render surfaces with eye-candy effects
33
pkgver = 0.3
4-
pkgrel = 1
4+
pkgrel = 2
55
url = https://github.com/wlrfx/scenefx
66
arch = x86_64
77
license = MIT
@@ -13,12 +13,12 @@ pkgbase = scenefx
1313
depends = libdrm
1414
depends = libglvnd
1515
depends = libpixman-1.so
16-
depends = libwlroots-0.18.so
16+
depends = wlroots0.18
1717
depends = wayland
1818
provides = libscenefx-0.3.so
1919
conflicts = scenefx-git
20-
options = debug
21-
source = scenefx-0.3.tar.gz::https://github.com/wlrfx/scenefx/archive/refs/tags/0.3.tar.gz
20+
replaces = scenefx
21+
source = scenefx0.3.tar.gz::https://github.com/wlrfx/scenefx/archive/refs/tags/0.3.tar.gz
2222
sha512sums = SKIP
2323

24-
pkgname = scenefx
24+
pkgname = scenefx0.3

aur/scenefx/PKGBUILD renamed to aur/scenefx-0.3/PKGBUILD

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Maintainer: Erik Reider <[email protected]>
22

3-
pkgname=scenefx
3+
pkgname=scenefx0.3
4+
_pkgname=scenefx
45
pkgver="0.3"
5-
pkgrel=1
6+
pkgrel=2
67
license=("MIT")
78
pkgdesc="A drop-in replacement for the wlroots scene API that allows wayland compositors to render surfaces with eye-candy effects"
89
url="https://github.com/wlrfx/scenefx"
@@ -11,7 +12,7 @@ depends=(
1112
"libdrm"
1213
"libglvnd"
1314
"libpixman-1.so"
14-
"libwlroots-0.18.so"
15+
"wlroots0.18"
1516
"wayland"
1617
)
1718
makedepends=(
@@ -24,8 +25,8 @@ makedepends=(
2425
optdepends=()
2526
provides=("libscenefx-${pkgver}.so")
2627
conflicts=("scenefx-git")
27-
options=("debug")
28-
source=("scenefx-${pkgver}.tar.gz::${url}/archive/refs/tags/$pkgver.tar.gz")
28+
replaces=("${_pkgname}")
29+
source=("${pkgname}.tar.gz::${url}/archive/refs/tags/$pkgver.tar.gz")
2930
sha512sums=("SKIP")
3031

3132
build() {

aur/swayfx/.SRCINFO

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pkgbase = swayfx
22
pkgdesc = SwayFX: Sway, but with eye candy!
33
pkgver = 0.5.1
4-
pkgrel = 1
4+
pkgrel = 2
55
url = https://github.com/WillPower3309/swayfx
66
install = sway.install
77
arch = i686
@@ -22,9 +22,9 @@ pkgbase = swayfx
2222
depends = libxkbcommon.so
2323
depends = pango
2424
depends = pcre2
25-
depends = libscenefx-0.3.so
25+
depends = scenefx0.3
2626
depends = ttf-font
27-
depends = libwlroots-0.18.so
27+
depends = wlroots0.18
2828
optdepends = brightnessctl: Brightness adjustment tool used in the default configuration
2929
optdepends = foot: Terminal emulator used in the default configuration
3030
optdepends = i3status: Status line generation
@@ -40,13 +40,10 @@ pkgbase = swayfx
4040
optdepends = xorg-xwayland: X11 support
4141
optdepends = xdg-desktop-portal-gtk: Default xdg-desktop-portal for file picking
4242
optdepends = xdg-desktop-portal-wlr: xdg-desktop-portal backend
43-
provides = sway
44-
provides = swayfx
4543
provides = wayland-compositor
4644
conflicts = sway
4745
conflicts = swayfx
4846
conflicts = swayfx-git
49-
options = debug
5047
backup = etc/sway/config
5148
source = swayfx-0.5.1.tar.gz::https://github.com/WillPower3309/swayfx/archive/refs/tags/0.5.1.tar.gz
5249
source = 50-systemd-user.conf

aur/swayfx/PKGBUILD

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
# Maintainer: Erik Reider <[email protected]>
22
pkgname="swayfx"
33
pkgver=0.5.1
4-
pkgrel=1
5-
license=("MIT")
4+
pkgrel=2
65
pkgdesc="SwayFX: Sway, but with eye candy!"
7-
makedepends=(
8-
"git"
9-
"meson"
10-
"scdoc"
11-
"wayland-protocols"
12-
)
6+
arch=("i686" "x86_64")
7+
url="https://github.com/WillPower3309/swayfx"
8+
license=("MIT")
139
depends=(
1410
"cairo"
1511
"gdk-pixbuf2"
@@ -22,10 +18,18 @@ depends=(
2218
"libxkbcommon.so"
2319
"pango"
2420
"pcre2"
25-
"libscenefx-0.3.so"
21+
"scenefx0.3"
2622
"ttf-font"
27-
"libwlroots-0.18.so"
23+
"wlroots0.18"
2824
)
25+
makedepends=(
26+
"git"
27+
"meson"
28+
"scdoc"
29+
"wayland-protocols"
30+
)
31+
provides=("wayland-compositor")
32+
backup=(etc/sway/config)
2933
optdepends=(
3034
"brightnessctl: Brightness adjustment tool used in the default configuration"
3135
"foot: Terminal emulator used in the default configuration"
@@ -43,35 +47,26 @@ optdepends=(
4347
"xdg-desktop-portal-gtk: Default xdg-desktop-portal for file picking"
4448
"xdg-desktop-portal-wlr: xdg-desktop-portal backend"
4549
)
46-
backup=(etc/sway/config)
47-
arch=("i686" "x86_64")
48-
url="https://github.com/WillPower3309/swayfx"
50+
conflicts=("sway" "swayfx" "swayfx-git")
51+
install=sway.install
4952
source=("swayfx-${pkgver}.tar.gz::${url}/archive/refs/tags/$pkgver.tar.gz"
5053
50-systemd-user.conf
5154
sway-portals.conf)
55+
5256
sha512sums=(
5357
"a057e660d1ab885d181c61d02fac82c2ffe784b772bff03676dbeaa3355b1b3fb0c809162fdb1a5b34fec5379ba580b91f99586a4d1b046e7ded82d62835f8b7"
5458
"d5f9aadbb4bbef067c31d4c8c14dad220eb6f3e559e9157e20e1e3d47faf2f77b9a15e52519c3ffc53dc8a5202cb28757b81a4b3b0cc5dd50a4ddc49e03fe06e"
5559
"790741df028822bf4d83170dea57e1c63f7d7938cf31969e4cd347b0fc07330322b603c9ec0091b7a3f425132bed9dee6f261074cc273555120858beaaaf5da1")
56-
provides=("sway" "swayfx" "wayland-compositor")
57-
conflicts=("sway" "swayfx" "swayfx-git")
58-
options=(debug)
59-
install=sway.install
6060

6161
build() {
62-
arch-meson \
63-
-Dwerror=false \
64-
-Dsd-bus-provider=libsystemd \
65-
"swayfx-${pkgver}" build
66-
meson compile -C build
62+
mkdir -p build
63+
arch-meson build "$pkgname" -D sd-bus-provider=libsystemd -D werror=false -D b_ndebug=true
64+
ninja -C build
6765
}
6866

6967
package() {
68+
DESTDIR="$pkgdir" ninja -C build install
69+
install -Dm644 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
7070
install -Dm644 50-systemd-user.conf -t "$pkgdir/etc/sway/config.d/"
7171
install -Dm644 sway-portals.conf "$pkgdir/usr/share/xdg-desktop-portal/sway-portals.conf"
72-
73-
DESTDIR="$pkgdir" meson install -C build
74-
75-
cd "swayfx-${pkgver}"
76-
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
7772
}

0 commit comments

Comments
 (0)