aboutsummaryrefslogtreecommitdiffstats
path: root/main/fish/APKBUILD
blob: 00e2c83c8003b931b7ad60572611fc967cf8921e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=fish
pkgver=2.0.0
pkgrel=0
pkgdesc="a modern interactive commandline shell"
url="http://www.fishshell.com/"
arch="all"

# guessed from fish/fish.cpp *gag*
license="GPL"

depends=""
depends_dev="libiconv-dev ncurses-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-doc"
source="http://fishshell.com/files/$pkgver/fish-$pkgver.tar.gz

	fish-safe-strerror.patch"

_builddir="$srcdir"/fish
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done

	autoconf
}

build() {
	cd "$_builddir"

	./configure --prefix=/usr \
		--sysconfdir=/etc || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
}

md5sums="fe5907e6af61607d4128ce891a1f6501  fish-2.0.0.tar.gz
f99973e0ed551b4ab592ab7b3bd43343  fish-safe-strerror.patch"
sha256sums="7e4c4a0b3c518769a3d31b235e743de7a8d52f851ad19d2df9d53534e6238303  fish-2.0.0.tar.gz
11478ff89e9e775b2934835fc99cf164157dd9c382118fe461951ac43bf6947c  fish-safe-strerror.patch"
sha512sums="a41e1b3737d5b556e08728312f486c55d1405492dd0be8a97694dabc0974b90ecbacfc74d3e427d63e9b3a639a03844b98ecded68cb3060522eee68879c28ce1  fish-2.0.0.tar.gz
117778f4c3e3f37236aa8a7c01a7993eadab6ff38cd777d6806f4fcf264cc83de054bc42040c294105d1be73b82408fdd241a6a175c8916827577c7da401aa97  fish-safe-strerror.patch"