APKBUILD 1.49 KB
Newer Older
Ariadne Conill's avatar
Ariadne Conill committed
1 2 3
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=fish
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=2.1.2
Ariadne Conill's avatar
Ariadne Conill committed
5 6 7 8 9 10 11 12 13
pkgrel=0
pkgdesc="a modern interactive commandline shell"
url="http://www.fishshell.com/"
arch="all"

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

depends=""
14
depends_dev="ncurses-dev"
Ariadne Conill's avatar
Ariadne Conill committed
15 16 17
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-doc"
18 19
source="http://fishshell.com/files/$pkgver/fish-$pkgver.tar.gz
        fish-safe-strerror.patch"
Ariadne Conill's avatar
Ariadne Conill committed
20

21
_builddir="$srcdir"/fish-$pkgver
Ariadne Conill's avatar
Ariadne Conill committed
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
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
}

Natanael Copa's avatar
Natanael Copa committed
47
md5sums="9cc73b46040174a1643d59d49ad28a48  fish-2.1.2.tar.gz
48
50547af78aef0c4d45904e79cd637e0e  fish-safe-strerror.patch"
Natanael Copa's avatar
Natanael Copa committed
49
sha256sums="c6c20d5ca3a2a0168461de8abfe85f9e6b255132698ea0109998d4ab68f9f6dd  fish-2.1.2.tar.gz
50
dd13865f8b45ea616cb37678268ecee65ce4539575ee98ab503633c7b2145edd  fish-safe-strerror.patch"
Natanael Copa's avatar
Natanael Copa committed
51
sha512sums="4f8f0133094d4d2295546a5b96e044646de2266364610368210b0db529b2d865c1b389f01f311b9b6d6d6dcd2a29040b7a9499d491605ae52a765a76d83db2a5  fish-2.1.2.tar.gz
52
f23d3b3db8fd9ac28f04a638478183abdebcf0dfbf50989625897741ebd19a771d6cd2baeae08b6c5887013fdba84118b2429b17cf541260ab894f173c81db17  fish-safe-strerror.patch"