APKBUILD 1.55 KB
Newer Older
Bartłomiej Piotrowski's avatar
Bartłomiej Piotrowski committed
1
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
2
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
3
pkgname=abook
4
pkgver=0.6.1
5
_ver=${pkgver/_pre/pre}
6
pkgrel=3
7 8
pkgdesc="Text-based addressbook designed for use with Mutt"
url="http://abook.sourceforge.net"
9
license="GPL-2.0"
10
arch="all"
11
makedepends="ncurses-dev readline-dev automake autoconf gettext-dev"
12
subpackages="$pkgname-doc $pkgname-lang"
13
source="http://$pkgname.sourceforge.net/devel/$pkgname-${_ver}.tar.gz
14
	gcc6.patch"
15

16
builddir="$srcdir"/$pkgname-$_ver
17
prepare() {
18 19 20 21 22
	default_prepare || return 1
	cd "$builddir"

	aclocal && automake --add-missing && autoconf -v
	sed 's/0.18/0.19/g' -i po/Makefile.in.in
23 24 25
}

build() {
26 27 28 29 30 31 32 33 34
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
35
	make || return 1
36 37 38
}

package() {
39
	cd "$builddir"
40
	make DESTDIR="$pkgdir" install || return 1
41
	rm -f "$pkgdir"/usr/lib/charset.alias
42 43
}

44 45 46 47 48 49
md5sums="4bffd4c47ac41b688abd58f65bfe0bfb  abook-0.6.1.tar.gz
43074804f0b76e388d73242a1b8d43d1  gcc6.patch"
sha256sums="f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9  abook-0.6.1.tar.gz
1eb89bc9ec6d4baed8a44d1ac9a8fb57742423e0699f26f354e810dfc63052cb  gcc6.patch"
sha512sums="993895ef2fd6d98d50db610699f8f0a28112778065ac56484373eb814afd8ab7371201fc21506c090514f4b29570ec229dc62c606ab068301152567e2c47fe66  abook-0.6.1.tar.gz
21ab6475512ea9baae1a6509749628d6b610e96e77c64139d09697d272d66556875058e91c9b948c4ebaf65795a97d8532bae25e5d7e71cc4a20af49897cd867  gcc6.patch"