summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9cab2489922bc3cc0060ca4c1edd979aad1cf73c (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
29
30
31
32
33
34
35
36
37
# Maintainer Xichen Zhou <xzhou@xeechou.net>

pkgname=taiwins-git
_pkgname=taiwins
pkgver=0.1.1
pkgrel=0
pkgdesc="Tiling and floating wayland window manager focused on speed and size"
url="https://taiwins.org"
license=('GPL2')
source=("git+http://github.com/${_pkgname}/${_pkgname}.git")
md5sums=('SKIP')
arch=('x86_64')

depends=( 'glibc' 'wayland' 'libxkbcommon' 'libinput' 'pixman' 'libdrm' 'pam'
          'systemd-libs' 'dbus' 'lua' 'libxcursor' 'cairo' 'fontconfig' 'freetype2'
          'librsvg' 'xorg-server-xwayland' 'libgl' 'libegl' 'libgles' )

makedepedends=('cmake' 'git')

prepare() {
    cd $srcdir/${_pkgname}
    git submodule update --init --recursive
    cmake -S. -DCMAKE_INSTALL_PREFIX=/usr -Bbuild
}

build() {
    cd $srcdir/${_pkgname}/build
    make
}

package() {
    cd $srcdir/${_pkgname}/build
    make DESTDIR=$pkgdir install
    install -Dm644 $srcdir/${_pkgname}/LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}

#vim: syntax=sh