# Maintainer: SanskritFritz (gmail) # Contributor: Stephen Drodge # Contributor: Bartłomiej Piotrowski # Contributor: Kaiting Chen # Contributor: Abhishek Dasgupta # Contributor: Eric Belanger # Contributor: Jan Fader _gitname="fish-shell" pkgname=fish-git pkgver=3.1.2.r2054.g254729f86 pkgrel=1 epoch=2 pkgdesc='Smart and user friendly shell intended mostly for interactive use' arch=('i686' 'x86_64' 'arm') url="http://fishshell.com" license=('GPL2') depends=('glibc' 'gcc-libs' 'ncurses' 'pcre2') optdepends=('python: man page completion parser / web config tool' 'pkgfile: command-not-found hook') makedepends=('cmake' 'python-sphinx' 'git') checkdepends=('expect') install=fish.install backup=(etc/fish/config.fish) source=(git://github.com/fish-shell/fish-shell.git) md5sums=('SKIP') provides=('fish' 'fish-shell') conflicts=('fish' 'fish-shell') pkgver() { cd ${_gitname} git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' } build() { cd ${_gitname} export CXXFLAGS+=" ${CPPFLAGS}" cmake \ -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_SYSCONFDIR=/etc \ -DCMAKE_BUILD_TYPE=None \ -DBUILD_DOCS=True \ -Wno-dev make -C build } check() { cd ${_gitname} make -C build test } package() { cd ${_gitname} make -C build DESTDIR="${pkgdir}" install }