mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=libgpg-error
|
|
pkgver=1.10
|
|
pkgrel=2
|
|
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")
|
|
sha1sums=('95b324359627fbcb762487ab6091afbe59823b29')
|
|
|
|
build() {
|
|
cd "${srcdir}"/${pkgname}-${pkgver}
|
|
# keep static lib for crypsetup
|
|
./configure --prefix=/usr
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}"/${pkgname}-${pkgver}
|
|
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
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|