sway-hidpi/PKGBUILD

42 lines
1.1 KiB
Bash
Raw Normal View History

2015-08-16 17:17:29 +03:00
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=sway-git
_pkgname=sway
2018-10-02 14:25:51 +03:00
pkgver=r4818.183a4b0d
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"
makedepends=("meson" "git" "scdoc" "wayland-protocols")
2015-12-08 14:12:02 +02:00
depends=(
2018-10-02 14:25:51 +03:00
"json-c" "pcre" "wlroots-git" "wayland" "libxkbcommon" "cairo" "pango"
"gdk-pixbuf2" "pixman" "libcap" "libinput" "pam" "xorg-server-xwayland"
2015-12-08 14:12:02 +02:00
)
2015-08-16 17:51:19 +03:00
optdepends=(
2015-12-27 18:08:23 +02:00
"rxvt-unicode: Default terminal emulator."
"dmenu: Default for launching applications."
"i3status: To display system information with a bar."
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")
sha1sums=("SKIP")
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() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
2015-08-16 17:17:29 +03:00
build() {
cd "${srcdir}/${_pkgname}"
2018-10-02 14:25:51 +03:00
rm -rf "$srcdir/build"
meson -Dwerror=false --prefix /usr "$srcdir/build"
ninja -C "$srcdir/build"
2015-08-16 17:17:29 +03:00
}
package() {
cd "${srcdir}/${_pkgname}"
2018-10-02 14:25:51 +03:00
DESTDIR="$pkgdir/" ninja -C "$srcdir/build" install
2015-08-16 17:17:29 +03:00
}