2015-08-16 17:17:29 +03:00
|
|
|
# Maintainer: Drew DeVault <sir@cmpwn.com>
|
|
|
|
pkgname=sway-git
|
|
|
|
_pkgname=sway
|
2019-06-11 20:23:40 +03:00
|
|
|
pkgver=r5942.3f77591b
|
2015-08-18 04:27:10 +03:00
|
|
|
pkgrel=1
|
2018-10-02 14:25:51 +03:00
|
|
|
license=("MIT")
|
|
|
|
pkgdesc="i3-compatible Wayland compositor"
|
2019-06-11 20:23:40 +03:00
|
|
|
makedepends=("meson" "git" "scdoc" "wayland-protocols" "ninja")
|
2015-12-08 14:12:02 +02:00
|
|
|
depends=(
|
2019-03-11 20:32:20 +03:00
|
|
|
"json-c" "pcre" "wlroots-git" "cairo" "pango" "gdk-pixbuf2" "pam"
|
2019-04-26 20:59:49 +03:00
|
|
|
"xorg-server-xwayland" "swaybg-git"
|
2015-12-08 14:12:02 +02:00
|
|
|
)
|
2015-08-16 17:51:19 +03:00
|
|
|
optdepends=(
|
2020-01-24 16:46:52 +03:00
|
|
|
"alacritty: Default terminal emulator."
|
2015-12-27 18:08:23 +02:00
|
|
|
"dmenu: Default for launching applications."
|
|
|
|
"i3status: To display system information with a bar."
|
2019-02-25 19:44:22 +03:00
|
|
|
"swayidle-git: Idle management daemon for Sway."
|
|
|
|
"swaylock-git: Screen locker for Sway."
|
2015-08-16 17:51:19 +03:00
|
|
|
)
|
2015-09-02 16:14:52 +03:00
|
|
|
arch=("i686" "x86_64")
|
2018-10-02 14:25:51 +03:00
|
|
|
url="https://swaywm.org"
|
|
|
|
source=("${pkgname%-*}::git+https://github.com/swaywm/sway.git")
|
2019-06-11 20:23:40 +03:00
|
|
|
sha512sums=('SKIP')
|
2018-10-02 14:25:51 +03:00
|
|
|
provides=("sway")
|
|
|
|
conflicts=("sway")
|
2018-10-02 15:04:05 +03:00
|
|
|
options=(debug !strip)
|
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
|
|
|
prepare() {
|
2019-02-25 19:44:22 +03:00
|
|
|
cd "$_pkgname"
|
2018-10-14 19:48:34 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2019-02-25 19:44:22 +03:00
|
|
|
cd "$_pkgname"
|
2019-06-11 20:23:40 +03:00
|
|
|
meson \
|
|
|
|
-Dwerror=false \
|
|
|
|
--prefix /usr \
|
|
|
|
"$srcdir/build"
|
2018-10-02 14:25:51 +03:00
|
|
|
ninja -C "$srcdir/build"
|
2015-08-16 17:17:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-02-25 19:44:22 +03:00
|
|
|
cd "$_pkgname"
|
|
|
|
DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
|
2015-08-16 17:17:29 +03:00
|
|
|
}
|