36 lines
786 B
Bash
36 lines
786 B
Bash
# Maintainer: Drew DeVault <sir@cmpwn.com>
|
|
pkgname=sway-git
|
|
_pkgname=sway
|
|
pkgver=r247.85a573d
|
|
pkgrel=1
|
|
license=('MIT')
|
|
pkgdesc='i3 compatible window manager for Wayland'
|
|
makedepends=("cmake" "git" "asciidoc")
|
|
depends=("wlc-git" "xorg-server-xwayland")
|
|
optdepends=(
|
|
"rxvt-unicode: default terminal emulator"
|
|
"dmenu: default for launching applications"
|
|
)
|
|
arch=("i386" "x86_64")
|
|
url='https://github.com/SirCmpwn/sway'
|
|
source=("${pkgname%-*}::git+https://github.com/SirCmpwn/sway.git")
|
|
sha1sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/${_pkgname}"
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
cmake . -DCMAKE_INSTALL_PREFIX=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
DESTDIR="$pkgdir/" make install
|
|
}
|