PKGBUILD 914 Bytes
Newer Older
1
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
2
3
4
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Thayer Williams <thayer@archlinux.org>
# Contributor: damir <damir@archlinux.org>
Thayer Williams's avatar
Thayer Williams committed
5

Aaron Griffin's avatar
Aaron Griffin committed
6
pkgname=abook
Gaetan Bisson's avatar
Gaetan Bisson committed
7
pkgver=0.6.0pre2.20130928
8
pkgrel=1
9
10
pkgdesc='Text-based addressbook designed for use with Mutt'
url='http://abook.sourceforge.net/'
11
arch=('i686' 'x86_64')
Eric Bélanger's avatar
Eric Bélanger committed
12
license=('GPL2')
13
makedepends=('git')
Aaron Griffin's avatar
Aaron Griffin committed
14
depends=('readline')
Gaetan Bisson's avatar
Gaetan Bisson committed
15
16
17
18
19
20
21
22
23
source=("abook::git://abook.git.sourceforge.net/gitroot/abook/abook#commit=2e3d4f7341e154bf09907aabcdfe73345cc72e68"
        'vcard.patch')
sha1sums=('SKIP'
          'ac71e84812c5d57cb8ddaf5b03b7c25cbdf4c3db')

prepare() {
	cd "${srcdir}/${pkgname}"
	patch -p1 -i ../vcard.patch
}
Aaron Griffin's avatar
Aaron Griffin committed
24
25

build() {
26
	cd "${srcdir}/${pkgname}"
27
28
	./configure --prefix=/usr --mandir=/usr/share/man
	make
29
	cd po && make update-po
Aaron Griffin's avatar
Aaron Griffin committed
30
31
}

Daniel Griffiths's avatar
Daniel Griffiths committed
32
package() {
33
	cd "${srcdir}/${pkgname}"
34
	make DESTDIR="${pkgdir}" install
Daniel Griffiths's avatar
Daniel Griffiths committed
35
}