Initial import

This commit is contained in:
SanskritFritz
2015-06-14 00:38:49 +02:00
commit 643fe4fc8f
3 changed files with 88 additions and 0 deletions

25
.SRCINFO Normal file
View File

@@ -0,0 +1,25 @@
pkgbase = fish-git
pkgdesc = User friendly shell intended mostly for interactive use (gitorius.org legacy version).
pkgver = 2012.01.31
pkgrel = 1
epoch = 1
url = http://gitorious.org/fish-shell
install = fish.install
arch = i686
arch = x86_64
license = GPL
license = LGPL
license = BSD
license = MIT
makedepends = doxygen
makedepends = git
depends = ncurses
depends = bc
optdepends = python2: make_completions script
provides = fish
conflicts = fish
source = git://gitorious.org/fish-shell/fish-shell.git
md5sums = SKIP
pkgname = fish-git

43
PKGBUILD Normal file
View File

@@ -0,0 +1,43 @@
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: Jan Fader <jan.fader@web.de>
# Contributor: SanskritFritz (gmail)
pkgname=fish-git
_gitname="fish-shell"
pkgver=2012.01.31
pkgrel=1
epoch=1
pkgdesc="User friendly shell intended mostly for interactive use (gitorius.org legacy version)."
arch=('i686' 'x86_64')
url="http://gitorious.org/fish-shell"
license=("GPL" "LGPL" "BSD" "MIT")
depends=('ncurses' 'bc')
optdepends=('python2: make_completions script')
makedepends=('doxygen' 'git')
provides=('fish')
conflicts=('fish')
install=fish.install
source=("git://gitorious.org/fish-shell/fish-shell.git")
md5sums=('SKIP')
pkgver() {
cd "$_gitname"
git log -1 --format="%cd" --date=short | sed 's|-|.|g'
}
build() {
cd $srcdir/$_gitname
autoconf
./configure --prefix=/usr --sysconfdir=/etc --docdir=/usr/share/doc/fish --without-xsel
make
}
package() {
cd $srcdir/$_gitname
make DESTDIR="$pkgdir" install
install -D -m644 user_doc/html/license.html "$pkgdir/usr/share/licenses/fish/license.html"
install -m755 make_completions.py "$pkgdir/usr/bin/make_completions"
sed -i "s/python/python2/" "$pkgdir/usr/bin/make_completions"
}

20
fish.install Normal file
View File

@@ -0,0 +1,20 @@
post_install() {
if [ ! "`grep /usr/bin/fish etc/shells`" ]; then
echo "updating /etc/shells... done."
sed -i "s|/bin/bash|/bin/bash\n/usr/bin/fish|" etc/shells
fi
}
post_upgrade() {
post_install $1
}
pre_remove() {
echo -ne "updating /etc/shells... \n"
sed -i '/^\/usr\/bin\/fish/d' /etc/shells
}
op=$1
shift
$op $*