fish: New package.
This commit is contained in:
parent
7f3df5cf75
commit
646345cf24
36
fish/PKGBUILD
Normal file
36
fish/PKGBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
# Maintainer: Masanori Shirayama <mashir43@gmail.com>
|
||||
|
||||
pkgname=fish
|
||||
pkgver=2.1.2
|
||||
pkgrel=1
|
||||
epoch=
|
||||
pkgdesc="a smart and user-friendly command line shell"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://fishshell.com/"
|
||||
license=('GPL')
|
||||
groups=()
|
||||
depends=('gcc-libs' 'ncurses' 'gettext' 'libiconv' 'doxygen')
|
||||
makedepends=('gcc' 'ncurses-devel' 'gettext-devel' 'intltool' 'libiconv-devel')
|
||||
install=fish.install
|
||||
source=("http://fishshell.com/files/$pkgver/$pkgname-$pkgver.tar.gz")
|
||||
sha1sums=("f7f8d8d26721833be3458b8113c74b747296ec0b")
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/$pkgname-$pkgver"
|
||||
autoreconf -ivf
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/$pkgname-$pkgver"
|
||||
CFLAGS+=" $(pkg-config ncursesw --cflags)"
|
||||
CXXFLAGS+=" $(pkg-config ncursesw --cflags)"
|
||||
CPPFLAGS+=" $(pkg-config ncursesw --cflags)"
|
||||
LDFLAGS+=" $(pkg-config ncursesw --libs)"
|
||||
./configure --prefix=/usr --with-doxygen
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/$pkgname-$pkgver"
|
||||
make DESTDIR="$pkgdir/" install
|
||||
}
|
||||
11
fish/fish.install
Normal file
11
fish/fish.install
Normal file
@ -0,0 +1,11 @@
|
||||
post_install() {
|
||||
grep -q '/usr/bin/fish' etc/shells || echo '/usr/bin/fish' >> etc/shells
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
sed -i '/^\/usr\/bin\/fish/d' etc/shells
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user