2023-05-27 13:40:22 +03:00
|
|
|
|
# Maintainer: Ali Furkan Yıldız <alifurkanyildiz@gmail.com>
|
|
|
|
|
# sway-git Maintainer: Drew DeVault <sir@cmpwn.com>
|
|
|
|
|
# sway-git Contributor: Antonin Décimo <antonin dot decimo at gmail dot com>
|
|
|
|
|
pkgname=sway-afy-git
|
2015-08-16 17:17:29 +03:00
|
|
|
|
_pkgname=sway
|
2023-08-06 16:36:35 +03:00
|
|
|
|
pkgver=r7173.bb91b7f5_5.c59d6f6
|
2021-02-16 03:04:31 +03:00
|
|
|
|
pkgrel=1
|
2018-10-02 14:25:51 +03:00
|
|
|
|
license=("MIT")
|
2023-05-27 13:40:22 +03:00
|
|
|
|
pkgdesc="sway-git, with added patches, including an env command"
|
2020-10-23 13:18:57 +03:00
|
|
|
|
makedepends=(
|
|
|
|
|
"git"
|
|
|
|
|
"meson"
|
|
|
|
|
"scdoc"
|
|
|
|
|
"wayland-protocols"
|
|
|
|
|
)
|
2015-12-08 14:12:02 +02:00
|
|
|
|
depends=(
|
2020-10-23 13:18:57 +03:00
|
|
|
|
"cairo"
|
|
|
|
|
"gdk-pixbuf2"
|
|
|
|
|
"json-c"
|
|
|
|
|
"pango"
|
|
|
|
|
"polkit"
|
2022-03-15 10:46:33 +03:00
|
|
|
|
"pcre2"
|
2020-10-23 13:18:57 +03:00
|
|
|
|
"swaybg-git"
|
|
|
|
|
"ttf-font"
|
|
|
|
|
"wlroots-git"
|
|
|
|
|
"xorg-server-xwayland"
|
2015-12-08 14:12:02 +02:00
|
|
|
|
)
|
2015-08-16 17:51:19 +03:00
|
|
|
|
optdepends=(
|
2020-10-23 13:18:57 +03:00
|
|
|
|
"alacritty: Terminal emulator used by the default config"
|
|
|
|
|
"dmenu: Application launcher"
|
|
|
|
|
"grim: Screenshot utility"
|
|
|
|
|
"i3status: Status line"
|
|
|
|
|
"mako: Lightweight notification daemon"
|
|
|
|
|
"slurp: Select a region"
|
|
|
|
|
"swayidle: Idle management daemon"
|
|
|
|
|
"swaylock: Screen locker"
|
|
|
|
|
"wallutils: Timed wallpapers"
|
|
|
|
|
"waybar: Highly customizable bar"
|
2015-08-16 17:51:19 +03:00
|
|
|
|
)
|
2020-10-23 13:18:57 +03:00
|
|
|
|
backup=(etc/sway/config)
|
2015-09-02 16:14:52 +03:00
|
|
|
|
arch=("i686" "x86_64")
|
2018-10-02 14:25:51 +03:00
|
|
|
|
url="https://swaywm.org"
|
2023-05-27 13:40:22 +03:00
|
|
|
|
source=("${_pkgname}::git+https://github.com/swaywm/sway.git"
|
|
|
|
|
"${_pkgname}-patches::git+https://gitlab.com/alifurkany/sway-patches"
|
2020-10-23 13:18:57 +03:00
|
|
|
|
50-systemd-user.conf)
|
2021-02-16 03:04:31 +03:00
|
|
|
|
sha512sums=('SKIP'
|
2023-05-27 13:40:22 +03:00
|
|
|
|
'SKIP'
|
2022-10-31 18:09:05 +03:00
|
|
|
|
'c2b7d808f4231f318e03789015624fd4cf32b81434b15406570b4e144c0defc54e216d881447e6fd9fc18d7da608cccb61c32e0e1fab2f1fe2750acf812d3137')
|
2018-10-02 14:25:51 +03:00
|
|
|
|
provides=("sway")
|
|
|
|
|
conflicts=("sway")
|
2020-10-24 03:23:14 +03:00
|
|
|
|
options=(debug)
|
2022-06-02 14:57:53 +03:00
|
|
|
|
install=sway.install
|
2015-08-16 17:17:29 +03:00
|
|
|
|
|
2023-08-06 16:36:35 +03:00
|
|
|
|
#CFLAGS="-pipe -march=x86-64 -mtune=generic -fno-omit-frame-pointer -fstack-protector-strong -fstack-clash-protection -fcf-protection -fsanitize=address"
|
|
|
|
|
#CXXFLAGS="${CFLAGS}"
|
|
|
|
|
|
2015-08-16 17:19:15 +03:00
|
|
|
|
pkgver() {
|
2019-02-25 19:44:22 +03:00
|
|
|
|
cd "$_pkgname"
|
2023-05-27 13:40:22 +03:00
|
|
|
|
rev_list_sway="$(git rev-list --count HEAD)"
|
|
|
|
|
rev_parse_sway="$(git rev-parse --short HEAD)"
|
|
|
|
|
cd ..
|
|
|
|
|
cd "$_pkgname-patches"
|
|
|
|
|
rev_list_patches="$(git rev-list --count HEAD)"
|
|
|
|
|
rev_parse_patches="$(git rev-parse --short HEAD)"
|
|
|
|
|
printf "r%s.%s_%s.%s" "$rev_list_sway" "$rev_parse_sway" "$rev_list_patches" "$rev_parse_patches"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
|
cd "$_pkgname"
|
|
|
|
|
git reset --hard
|
|
|
|
|
git clean -fd
|
|
|
|
|
for patch in ../"$_pkgname"-patches/*.patch; do
|
|
|
|
|
patch --forward --strip=1 --input="$patch"
|
|
|
|
|
done
|
2015-08-16 17:19:15 +03:00
|
|
|
|
}
|
|
|
|
|
|
2018-10-14 19:48:34 +03:00
|
|
|
|
build() {
|
2023-08-06 16:36:35 +03:00
|
|
|
|
meson setup \
|
2021-02-16 03:04:31 +03:00
|
|
|
|
-Dsd-bus-provider=libsystemd \
|
2019-06-11 20:23:40 +03:00
|
|
|
|
-Dwerror=false \
|
2023-08-06 16:36:35 +03:00
|
|
|
|
-Dbuildtype=debug \
|
|
|
|
|
-Dprefix=/usr \
|
2021-02-16 03:04:31 +03:00
|
|
|
|
"$_pkgname" build
|
|
|
|
|
meson compile -C build
|
2015-08-16 17:17:29 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
package() {
|
2020-10-23 13:18:57 +03:00
|
|
|
|
install -Dm644 50-systemd-user.conf -t "$pkgdir/etc/sway/config.d/"
|
|
|
|
|
|
2021-02-16 03:04:31 +03:00
|
|
|
|
DESTDIR="$pkgdir" meson install -C build
|
2020-10-23 13:18:57 +03:00
|
|
|
|
|
2021-02-16 03:04:31 +03:00
|
|
|
|
cd "$_pkgname"
|
2020-10-23 13:18:57 +03:00
|
|
|
|
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
2015-08-16 17:17:29 +03:00
|
|
|
|
}
|
2021-04-12 10:24:12 +03:00
|
|
|
|
|
|
|
|
|
post_upgrade() {
|
2023-05-27 13:40:22 +03:00
|
|
|
|
echo "Make sure to upgrade wlroots-git and sway-afy-git together."
|
2021-04-12 10:24:12 +03:00
|
|
|
|
echo "Upgrading one but not the other is unsupported."
|
|
|
|
|
}
|