commit c2db2a3be7155c513d354bd597f83e648dfbe927 Author: Jerome Leclanche Date: Sat Apr 16 15:04:38 2016 +0000 sway: Moved from AUR diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..2bfa4d7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ + +pkgname=sway +pkgver=0.5 +pkgrel=2 +pkgdesc="i3 compatible window manager for Wayland" +arch=("i686" "x86_64") +url="http://swaywm.org" +license=("MIT") +depends=( + "wlc" "xorg-server-xwayland" "json-c" "pango" "wayland" "gdk-pixbuf2" +) +optdepends=( + "rxvt-unicode: Default terminal emulator." + "dmenu: Default for launching applications." + "imagemagick: For taking screenshots." + "ffmpeg: For recording screencasts." + "i3status: To display system information with a bar." +) +makedepends=("cmake" "git" "asciidoc") +source=( + "$pkgname-$pkgver.tar.gz::https://github.com/SirCmpwn/$pkgname/archive/$pkgver.tar.gz" + "$pkgname-$pkgver.tar.gz::https://github.com/SirCmpwn/$pkgname/archive/$pkgver.tar.gz.sig" +) +sha256sums=( + "1800bd21297e8af168f0c7afbf4f16fb817c8687d1451d6ecd5abba0873a2d3c" + "SKIP" +) + + +build() { + mkdir -p build + cd build + cmake "$srcdir/$pkgname-$pkgver" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_SYSCONFDIR=/etc \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd build + DESTDIR="$pkgdir" make install + install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}