You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB
Bash

pkgname=sway
pkgver=0.15.2
6 years ago
pkgrel=3
pkgdesc='Tiling Wayland compositor and replacement for the i3 window manager'
arch=('x86_64')
url='https://swaywm.org/'
license=('MIT')
depends=('gdk-pixbuf2' 'pango' 'wlc' 'xorg-server-xwayland')
makedepends=('asciidoc' 'cmake' 'ninja')
optdepends=(
6 years ago
'dmenu: Default for launching applications.'
'ffmpeg: For recording screencasts.'
'i3status: To display system information with a bar.'
'imagemagick: For taking screenshots.'
'rxvt-unicode: Default terminal emulator.'
)
6 years ago
validpgpkeys=('9DDA3B9FA5D58DD5392C78E652CB6609B22DA89A') # Drew DeVault
install=$pkgname.install
source=(
6 years ago
"$pkgname-$pkgver.tar.gz::https://github.com/swaywm/$pkgname/archive/$pkgver.tar.gz"
"https://github.com/swaywm/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.sig"
)
6 years ago
sha256sums=('05526e3038d2a5490a64bd816f1f04d2a6c214ddc6182835312b273b40b737ae'
'SKIP')
build() {
6 years ago
mkdir -p build
cd build
cmake "../$pkgname-$pkgver" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_INSTALL_PREFIX=/usr \
-DVERSION="$pkgver" \
-DCMAKE_C_FLAGS='-w' \
-G Ninja
ninja
}
package() {
6 years ago
DESTDIR="$pkgdir" ninja -C build install
install -Dm644 "$pkgname-$pkgver/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
6 years ago
# vim: sw=2 ts=2 et: