mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
added initial pkgbuild for sway-wlroots
This commit is contained in:
parent
373def4446
commit
078b3c5c44
1 changed files with 66 additions and 0 deletions
66
dist/archlinux/PKGBUILD
vendored
Normal file
66
dist/archlinux/PKGBUILD
vendored
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
# Maintainer: Drew DeVault <sir@cmpwn.com>
|
||||
# Contributor: chrisaw <home@chrisaw.com>
|
||||
|
||||
pkgname=sway
|
||||
pkgver=git
|
||||
pkgrel=1
|
||||
license=('MIT')
|
||||
pkgdesc='i3 compatible window manager for Wayland'
|
||||
makedepends=(
|
||||
"meson"
|
||||
"git"
|
||||
"asciidoc"
|
||||
)
|
||||
depends=(
|
||||
"wlroots"
|
||||
"wayland"
|
||||
"xorg-server-xwayland"
|
||||
"libinput"
|
||||
"libcap"
|
||||
"pcre"
|
||||
"json-c"
|
||||
"pango"
|
||||
"cairo"
|
||||
"gdk-pixbuf2"
|
||||
"pam"
|
||||
"dbus"
|
||||
)
|
||||
optdepends=(
|
||||
"rxvt-unicode: Default terminal emulator."
|
||||
"dmenu: Default for launching applications."
|
||||
"imagemagick: For taking screenshots."
|
||||
"ffmpeg: For recording screencasts."
|
||||
"i3status: To display system information with a bar."
|
||||
)
|
||||
arch=("i686" "x86_64")
|
||||
url='http://swaywm.org'
|
||||
source=("${pkgname%-*}::git+https://github.com/SirCmpwn/sway.git#wlroots")
|
||||
sha1sums=('SKIP')
|
||||
provides=('sway')
|
||||
conflicts=('sway-git')
|
||||
install=sway.install
|
||||
|
||||
pkgver() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
|
||||
meson build \
|
||||
--prefix=/usr \
|
||||
-Dbuildtype=debugoptimized \
|
||||
-Db_lto=True \
|
||||
-Denable-systemd=True \
|
||||
-Denable-elogind=False \
|
||||
-Denable-libcap=True
|
||||
|
||||
ninja -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
|
||||
DESTDIR="${pkgdir}" ninja -C build install
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue