forked from archlinux/svntogit-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
39 lines (35 loc) · 1.11 KB
/
PKGBUILD
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
# Maintainer: Gaetan Bisson <[email protected]>
# Contributor: Daniel J Griffiths <[email protected]>
# Contributor: Thayer Williams <[email protected]>
# Contributor: damir <[email protected]>
pkgname=abook
pkgver=0.6.1
pkgrel=6
pkgdesc='Text-based addressbook designed for use with Mutt'
url='http://abook.sourceforge.net/'
arch=('x86_64')
license=('GPL2')
makedepends=('git')
depends=('readline')
validpgpkeys=('3552E46F58F5FEC69A2CD85A5B4E2D0DD7F62B21')
source=("http://abook.sourceforge.net/devel/${pkgname}-${pkgver}.tar.gz"{,.asc}
'gcc5.patch')
sha256sums=('f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9'
'SKIP'
'1eb89bc9ec6d4baed8a44d1ac9a8fb57742423e0699f26f354e810dfc63052cb')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
aclocal && automake --add-missing && autoconf
sed 's/0.18/0.20/g' -i po/Makefile.in.in
patch -p1 -i ../gcc5.patch
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --mandir=/usr/share/man
make
cd po && make update-po
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}