summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b56d735df5a3bae71e2b66e057870358ee4eb3df (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
28
# Maintainer: orhun <orhunparmaksiz@gmail.com>
# Contributor: Vlad M. <vlad@archlinux.net>
# https://github.com/orhun/pkgbuilds

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

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

package() {
  cd "$pkgname-$pkgver.1"
  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"
}