sway-hidpi/PKGBUILD

50 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
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"
makedepends=("meson" "git" "scdoc" "wayland-protocols" "ninja")
2015-12-08 14:12:02 +02:00
depends=(
"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=(
"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 18:44:22 +02: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")
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 18:44:22 +02: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)"
}
prepare() {
2019-02-25 18:44:22 +02:00
cd "$_pkgname"
}
build() {
2019-02-25 18:44:22 +02:00
cd "$_pkgname"
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 18:44:22 +02:00
cd "$_pkgname"
DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
2015-08-16 17:17:29 +03:00
}