sway-slonk-git/PKGBUILD
Emmanuel Gil Peyrot 54c712fdc1 Move meson to prepare(), to keep the build directory between builds
This greatly speeds up rebuilds when not much has changed and ccache
isn’t used.
2018-10-14 13:01:20 -04:00

44 lines
1.1 KiB
Bash

# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=sway-git
_pkgname=sway
pkgver=r4818.183a4b0d
pkgrel=1
license=("MIT")
pkgdesc="i3-compatible Wayland compositor"
makedepends=("meson" "git" "scdoc" "wayland-protocols")
depends=(
"json-c" "pcre" "wlroots-git" "wayland" "libxkbcommon" "cairo" "pango"
"gdk-pixbuf2" "pixman" "libcap" "libinput" "pam" "xorg-server-xwayland"
)
optdepends=(
"rxvt-unicode: Default terminal emulator."
"dmenu: Default for launching applications."
"i3status: To display system information with a bar."
)
arch=("i686" "x86_64")
url="https://swaywm.org"
source=("${pkgname%-*}::git+https://github.com/swaywm/sway.git")
sha1sums=("SKIP")
provides=("sway")
conflicts=("sway")
options=(debug !strip)
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_pkgname}"
meson -Dwerror=false --prefix /usr "$srcdir/build"
}
build() {
cd "${srcdir}/${_pkgname}"
ninja -C "$srcdir/build"
}
package() {
cd "${srcdir}/${_pkgname}"
DESTDIR="$pkgdir/" ninja -C "$srcdir/build" install
}