2015-08-16 17:17:29 +03:00
|
|
|
# Maintainer: Drew DeVault <sir@cmpwn.com>
|
2020-10-23 13:18:57 +03:00
|
|
|
# Contributor: Antonin Décimo <antonin dot decimo at gmail dot com>
|
2015-08-16 17:17:29 +03:00
|
|
|
pkgname=sway-git
|
|
|
|
_pkgname=sway
|
2021-02-16 03:04:31 +03:00
|
|
|
pkgver=r6607.28cadf55
|
|
|
|
pkgrel=1
|
2018-10-02 14:25:51 +03:00
|
|
|
license=("MIT")
|
2020-10-23 13:18:57 +03:00
|
|
|
pkgdesc="Tiling Wayland compositor and replacement for the i3 window manager"
|
|
|
|
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"
|
|
|
|
"pcre"
|
|
|
|
"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"
|
2020-10-23 13:18:57 +03:00
|
|
|
source=("${pkgname%-*}::git+https://github.com/swaywm/sway.git"
|
|
|
|
50-systemd-user.conf)
|
2021-02-16 03:04:31 +03:00
|
|
|
sha512sums=('SKIP'
|
|
|
|
'57590bc0d14c87289a4a9cd67991c6a841e54244d2a6186b5da5a08e633de2e8631959fa8c77ede211b0a5f315d920f2c1350951a53d6f2e9e81859056cb3c9e')
|
2018-10-02 14:25:51 +03:00
|
|
|
provides=("sway")
|
|
|
|
conflicts=("sway")
|
2020-10-24 03:23:14 +03:00
|
|
|
options=(debug)
|
2015-08-16 17:17:29 +03:00
|
|
|
|
2015-08-16 17:19:15 +03:00
|
|
|
pkgver() {
|
2019-02-25 19:44:22 +03:00
|
|
|
cd "$_pkgname"
|
2015-08-16 17:19:15 +03:00
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
2018-10-14 19:48:34 +03:00
|
|
|
build() {
|
2021-02-16 03:04:31 +03:00
|
|
|
arch-meson \
|
|
|
|
-Dsd-bus-provider=libsystemd \
|
2019-06-11 20:23:40 +03:00
|
|
|
-Dwerror=false \
|
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"
|
|
|
|
for util in autoname-workspaces.py inactive-windows-transparency.py grimshot; do
|
|
|
|
install -Dm755 "contrib/$util" -t "$pkgdir/usr/share/$pkgname/scripts"
|
|
|
|
done
|
2015-08-16 17:17:29 +03:00
|
|
|
}
|