Package: chunkwm
Version: 0.4.6
Revision: 1
Source: https://codeload.github.com/koekeishiya/%n/tar.gz/v%v
Source-Checksum: SHA256(e1b99a45068c36dd83d21d6a6b84de81ace732634a63f39ace86e5131c5f38d5)
SourceRename: %n-%v.tar.gz

Homepage: https://koekeishiya.github.io/chunkwm/
License: BSD

Description: Tiling window manager
DescDetail: <<
chunkwm is a tiling window manager for macOS that uses a plugin
architecture, successor to kwm. It represents windows as the leaves of
a binary tree, and supports binary space partitioned, monocle and
floating desktops.
<<
DescUsage: <<
Copy chunkwmrc from %p/share/doc/%n/examples into ~/.chunkwmrc to get
started. Note that the rc file must be set executable.

If you'd like to have chunkwm start automatically at login, you may
copy the example launchagent config from
%p/share/doc/%n/examples/com.koekeishiya.chunkwm.plist into
~/Library/LaunchAgents and start it for the first time with
launchctl load -w ~/Library/LaunchAgents/com.koekeishiya.chunkwm.plist

chunkwm needs to be authorized to use accessibility features, and will
request access on the first run.
<<
Recommends: skhd

DocFiles: LICENSE.txt README.md CHANGELOG.md docs/ examples

BuildDepends: fink (>= 0.28)

PatchScript: <<
#!/bin/sh -ev
sed -i'' -e 's,~/.chunkwm_plugins,%p/lib/%n/plugins,' examples/chunkwmrc
sed -i'' -e 's,/usr/local,%p,' examples/com.koekeishiya.chunkwm.plist
<<
CompileScript: <<
#!/bin/sh -ev
make
make -C src/chunkc
for plugin in border ffm purify tiling
do
    make -C src/plugins/$plugin
    install_name_tool -id %p/lib/%n/plugins/$plugin.so plugins/$plugin.so
done
<<
InstallScript: <<
#!/bin/sh -ev
mkdir -p %i/bin
install bin/chunkwm %i/bin
install src/chunkc/bin/chunkc %i/bin
mkdir -p %i/lib/%n/plugins
install -m 0644 plugins/*.so %i/lib/%n/plugins
<<
Shlibs: <<
  !%p/lib/%n/plugins/border.so
  !%p/lib/%n/plugins/ffm.so
  !%p/lib/%n/plugins/purify.so
  !%p/lib/%n/plugins/tiling.so
<<

Maintainer: None <fink-devel@lists.sourceforge.net>