summaryrefslogtreecommitdiffstats
path: root/abs/core/libgpg-error/PKGBUILD
blob: b7083bbed18520a712f9fe820e870d75a3341d24 (plain)
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
# $Id: PKGBUILD 80074 2010-05-10 21:13:12Z thomas $
# Maintainer: judd <jvinet@zeroflux.org>

pkgname=libgpg-error
pkgver=1.7
pkgrel=3
pkgdesc="Support library for libgcrypt"
arch=(i686 x86_64)
url="http://www.gnupg.org"
license=('LGPL')
depends=('glibc' 'sh')
options=(!libtool)
source=(#ftp://ftp.gnupg.org/gcrypt/libgpg-error/${pkgname}-${pkgver}.tar.bz2
	ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/libgpg-error/${pkgname}-${pkgver}.tar.bz2)
md5sums=('62c0d09d1e76c5b6da8fff92314c4665')

build() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  # keep static lib for crypsetup
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="${pkgdir}/" install || return 1

  # Move dynamic libraries to /lib
  install -d -m755 "${pkgdir}"/lib/ || return 1
  mv "${pkgdir}"/usr/lib/libgpg-error.so* "${pkgdir}"/lib/ || return 1
  ln -sf /lib/libgpg-error.so "${pkgdir}"/usr/lib/libgpg-error.so || return 1
}