summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9d42b5b37769086dc3e253dd2af56fb39b1e79b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Contributor: orhun <orhunparmaksiz@gmail.com>
# Contributor: Vlad M. <vlad@archlinux.net>

pkgname=wtftw
pkgver=1.2.1
pkgrel=1
pkgdesc='Window Tiling For The Win. A tiling window manager written in Rust'
arch=('i686' 'x86_64')
url="https://github.com/Kintaro/wtftw"
license=('BSD')
depends=('xorg-xmessage' 'libxinerama' 'gcc-libs')
makedepends=('rust')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
md5sums=('fc937342074634cf348a7a1a6aa85bdc')

build() {
  cd "$pkgname-$pkgver"
  cargo build --release --locked
}

package() {
  cd "$pkgname-$pkgver"
  install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
  install -Dm 644 config/config.rs -t "$pkgdir/usr/share/$pkgname"
}