mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-16 00:00:28 +08:00
29 lines
987 B
Bash
29 lines
987 B
Bash
# $Id: PKGBUILD 80074 2010-05-10 21:13:12Z thomas $
|
|
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
|
|
|
|
pkgname=libgcrypt
|
|
pkgver=1.4.5
|
|
pkgrel=2
|
|
pkgdesc="a general purpose crypto library based on the code used"
|
|
arch=(i686 x86_64)
|
|
url="http://www.gnupg.org"
|
|
license=('LGPL')
|
|
depends=('libgpg-error>=1.7')
|
|
options=(!libtool)
|
|
source=(#ftp://ftp.gnupg.org/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2
|
|
ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/libgcrypt/${pkgname}-${pkgver}.tar.bz2)
|
|
md5sums=('cc2017ad09b4543f8b3b5e9a53cfd89d')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
# keep static library for , needed for cryptsetup
|
|
./configure --prefix=/usr --disable-padlock-support
|
|
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/libgcrypt.so* "${pkgdir}"/lib/ || return 1
|
|
ln -sf /lib/libgcrypt.so "${pkgdir}"/usr/lib/libgcrypt.so || return 1
|
|
}
|