diff options
Diffstat (limited to 'repo')
-rw-r--r-- | repo/util/fzf.xibuild | 50 | ||||
-rw-r--r-- | repo/x11/bspwm.xibuild | 2 | ||||
-rw-r--r-- | repo/x11/rxvt-unicode.xibuild | 29 | ||||
-rw-r--r-- | repo/x11/sxhkd.xibuild | 17 |
4 files changed, 71 insertions, 27 deletions
diff --git a/repo/util/fzf.xibuild b/repo/util/fzf.xibuild new file mode 100644 index 0000000..0915d48 --- /dev/null +++ b/repo/util/fzf.xibuild @@ -0,0 +1,50 @@ +#!/bin/bash + +MAKEDEPS=(git go) +DEPS=(bash) + +PKG_VER=0.29.0 +SOURCE=https://github.com/junegunn/fzf/archive/refs/tags/$PKG_VER.tar.gz +DESC="Command-line fuzzy finder" + +prepare () { + sed -i 's/-w /-w -linkmode external /' Makefile +} + +build () { + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + make + +} + +package () { + ## Man page + install -Dm644 man/man1/fzf.1 "$PKG_DEST"/usr/share/man/man1/fzf.1 + install -Dm644 man/man1/fzf-tmux.1 "$PKG_DEST"/usr/share/man/man1/fzf-tmux.1 + + ## License + install -Dm644 LICENSE "$PKG_DEST"/usr/share/licenses/fzf/LICENSE + + ## Binaries + install -dm755 "$PKG_DEST"/usr/bin + install -m755 bin/fzf-tmux "$PKG_DEST"/usr/bin/ + install -Dm755 target/fzf-linux_amd64 "$PKG_DEST"/usr/bin/fzf + + ## Completion and keybindings + install -dm755 "$PKG_DEST"/usr/share/fzf + install -m644 shell/*.bash shell/*.zsh "$PKG_DEST"/usr/share/fzf + + ## Fish keybindings + install -Dm644 shell/key-bindings.fish "$PKG_DEST"/usr/share/fish/vendor_functions.d/fzf_key_bindings.fish + + ## Vim plugin + install -Dm644 doc/fzf.txt "$PKG_DEST"/usr/share/vim/vimfiles/doc/fzf.txt + install -Dm644 plugin/fzf.vim "$PKG_DEST"/usr/share/vim/vimfiles/plugin/fzf.vim + +} + + diff --git a/repo/x11/bspwm.xibuild b/repo/x11/bspwm.xibuild index b3210d2..d1caa4f 100644 --- a/repo/x11/bspwm.xibuild +++ b/repo/x11/bspwm.xibuild @@ -6,6 +6,8 @@ DEPS=(xcb-util xcb-util-wm xcb-util-keysyms) PKG_VER=0.9.10 SOURCE=https://github.com/baskerville/bspwm/archive/refs/tags/$PKG_VER.tar.gz +DESC="Tiling window manager based on binary space partitioning" + build () { make } diff --git a/repo/x11/rxvt-unicode.xibuild b/repo/x11/rxvt-unicode.xibuild index c0213da..102f94c 100644 --- a/repo/x11/rxvt-unicode.xibuild +++ b/repo/x11/rxvt-unicode.xibuild @@ -8,35 +8,10 @@ DESC="Unicode fork of rxvt terminal emulator" PKG_VER=9.30 SOURCE=http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-$PKG_VER.tar.bz2 -export TERMINFO=/usr/share/terminfo build () { - ./configure $XORG_CONFIG \ - --enable-256-color \ - --enable-combining \ - --enable-fading \ - --enable-font-styles \ - --enable-iso14755 \ - --enable-keepscrolling \ - --enable-lastlog \ - --enable-mousewheel \ - --enable-next-scroll \ - --enable-perl \ - --enable-pointer-blank \ - --enable-rxvt-scroll \ - --enable-selectionscrolling \ - --enable-slipwheeling \ - --disable-smart-resize \ - --enable-startup-notification \ - --enable-transparency \ - --enable-unicode3 \ - --enable-utmp \ - --enable-wtmp \ - --enable-xft \ - --enable-xim \ - --enable-xterm-scroll \ - --disable-pixbuf \ - --disable-frills + export TERMINFO=/usr/share/terminfo + ./configure --prefix=/usr --enable-everything make } diff --git a/repo/x11/sxhkd.xibuild b/repo/x11/sxhkd.xibuild new file mode 100644 index 0000000..a352175 --- /dev/null +++ b/repo/x11/sxhkd.xibuild @@ -0,0 +1,17 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(xcb-util-keysyms) + +PKG_VER=0.6.2 +SOURCE=https://github.com/baskerville/sxhkd/archive/refs/tags/$PKG_VER.tar.gz + +DESC="Simple X HotKey Daemon; reacts to input events by executing commands" + +build () { + make +} + +package () { + make DESTDIR=$PKG_DEST install +} |