# Contributor: Abhishek Dasgupta # Contributor: Eric Belanger # Contributor: Jan Fader # Contributor: Stephen Drodge # Maintainer: SanskritFritz (gmail) pkgname=fish-git _gitname="fish-shell" pkgver=3.0.2.r711.g77e71cfcb pkgrel=1 epoch=2 pkgdesc="User friendly shell intended mostly for interactive use." arch=('i686' 'x86_64' 'arm') url="http://fishshell.com" license=("GPL2") depends=('ncurses') optdepends=('python: fish_update_completions and other tools' 'xsel: clipboard integration') makedepends=('cmake' 'doxygen' 'git' 'ncurses') provides=('fish' 'fish-shell') conflicts=('fish' 'fish-shell') install='fish.install' source=("git://github.com/fish-shell/fish-shell.git") md5sums=('SKIP') pkgver() { cd "$_gitname" # git log -1 --format="%cd" --date=short | sed 's|-|.|g' git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' } build() { cd "$srcdir/$_gitname" mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. make } package() { cd "$srcdir/$_gitname/build" make DESTDIR="$pkgdir" install # https://github.com/fish-shell/fish-shell/issues/5719 # mv "$pkgdir/usr/local/share/fish/"* "$pkgdir/usr/share/fish" # rmdir "$pkgdir/usr/local/share/fish" "$pkgdir/usr/local/share" "$pkgdir/usr/local" }