void-packages/srcpkgs/jeti-filemanager/template
2021-05-17 00:45:53 -03:00

20 lines
704 B
Bash

# Template file for 'jeti-filemanager'
pkgname=jeti-filemanager
version=2.0.1
revision=3
build_style=gnu-makefile
makedepends="ncurses-devel"
short_desc="Total Commander filemanager ncurses clone"
maintainer="Harri Leino <mr.leino@gmail.com>"
license="GPL-3.0-only"
homepage="https://github.com/mrshampoo/jeti-filemanager/"
distfiles="https://github.com/mrshampoo/jeti-filemanager/archive/${version}.tar.gz"
checksum=4da4ddee8fe6774b91ea473810d6c6898777c9bbcb8816996d72095dc0e18691
_LIBS="-lncurses"
CFLAGS="-fcommon"
pre_build() {
# Fix missing $(LDFLAGS) and wrong order of $^ and $(_LIBS) when linking
sed -i Makefile -e 's;$(CC) $(CFLAGS) $(_LIBS) $^ -o $@;$(CC) $(LDFLAGS) $^ $(_LIBS) -o $@;'
}