From fb334aa97ae544807f56203124a3fed810b4e236 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Mon, 13 Sep 2021 14:16:50 -0700 Subject: Initial commit --- PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f12faf3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: jc_gargma +# Maintainer (AUR): Gaetan Bisson +# Contributor (AUR): Daniel J Griffiths +# Contributor (AUR): Thayer Williams +# Contributor (AUR): damir + +# # I maintain this because: +# I use it and it is not in an official repo + +pkgname=abook +pkgver=0.6.1 +pkgrel=7 +pkgdesc='Text-based addressbook designed for use with Mutt' +url='http://abook.sourceforge.net/' +arch=('x86_64') +license=('GPL2') +makedepends=('git') +depends=('readline') +source=("http://abook.sourceforge.net/devel/${pkgname}-${pkgver}.tar.gz" + 'gcc5.patch') +sha256sums=('f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9' + '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 +} -- cgit v1.2.1