# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=fish pkgver=2.6.0 pkgrel=0 pkgdesc="a modern interactive commandline shell" url="http://www.fishshell.com/" arch="all" license="GPL2" depends="" depends_dev="$pkgname-tools" makedepends="libtool doxygen ncurses-dev" install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools::noarch" source="http://www.fishshell.com/files/$pkgver/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$builddir" make install DESTDIR="$pkgdir" || return 1 rm -fr "$pkgdir"/usr/share/$pkgname/groff } dev() { default_dev || return 1 mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/share/pkgconfig "$subpkgdir"/usr/share } doc() { default_doc || return 1 mkdir -p "$subpkgdir"/usr/share/$pkgname mv "$pkgdir"/usr/share/$pkgname/man "$subpkgdir"/usr/share/$pkgname } tools() { pkgdesc="$pkgdesc (tools)" depends="$pkgname python" mkdir -p "$subpkgdir"/usr/share/$pkgname mv "$pkgdir"/usr/share/$pkgname/tools "$subpkgdir"/usr/share/$pkgname } sha512sums="d4ded5ce24600e85673a7bb016e9dc36bce999b27f40e6b1ce0b9ca49a421be2d444d9d2b6f178f6eee963e59daa4a65df4c3de2a8086a610486f758fcfb0ed1 fish-2.6.0.tar.gz"