cruxports/bemenu/Pkgfile

25 lines
1007 B
Plaintext
Raw Permalink Normal View History

2022-02-05 15:39:19 -05:00
# Description: dynamic menu library and client program inspired by dmenu with support for wayland compositors
# URL: https://github.com/Cloudef/bemenu/
# Maintainer: John McQuah, jmcquah at disroot dot org
2024-09-02 21:09:21 -04:00
# Depends on: pango
# Optional: xorg-libxinerama scdoc wayland-protocols
2022-02-05 15:39:19 -05:00
name=bemenu
2024-09-02 21:09:21 -04:00
version=0.6.23
2022-02-05 15:39:19 -05:00
release=1
2023-09-08 20:00:04 -04:00
source=(https://github.com/Cloudef/$name/archive/$version/$name-$version.tar.gz)
2022-02-05 15:39:19 -05:00
build() {
TARGETS="clients curses"
BEMENU_INSTALL="install-bins install-libs install-include install-pkgconfig install-curses"
2023-09-08 20:00:04 -04:00
prt-get isinst scdoc && { TARGETS+=" man"; BEMENU_INSTALL+=" install-man"; }
2024-09-02 21:09:21 -04:00
prt-get isinst xorg-libxinerama xorg-xcb-util-renderutil && { TARGETS+=" x11"; BEMENU_INSTALL+=" install-x11"; }
prt-get isinst wayland-protocols && { TARGETS+=" wayland"; BEMENU_INSTALL+=" install-wayland"; }
2023-09-08 20:00:04 -04:00
2022-02-05 15:39:19 -05:00
cd $name-$version
make PREFIX=/usr $TARGETS
make PREFIX=/usr DESTDIR=$PKG ${BEMENU_INSTALL}
cd $PKG/usr/lib && ln -sf lib${name}.so.${version} lib${name}.so.${version:0:1}
2022-02-05 15:39:19 -05:00
}