mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
74 lines
2.1 KiB
Bash
74 lines
2.1 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
_pkgbasename=krb5
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=1.14.3
|
|
pkgrel=1
|
|
pkgdesc="The Kerberos network authentication system (32-bit)"
|
|
arch=('x86_64')
|
|
url="http://web.mit.edu/kerberos/"
|
|
license=('custom')
|
|
depends=('lib32-e2fsprogs' 'lib32-libldap' 'lib32-keyutils' $_pkgbasename=$pkgver)
|
|
makedepends=('perl' 'lib32-gcc-libs')
|
|
provides=('lib32-heimdal')
|
|
replaces=('lib32-heimdal')
|
|
conflicts=('lib32-heimdal')
|
|
source=("http://web.mit.edu/kerberos/dist/${_pkgbasename}/1.14/${_pkgbasename}-${pkgver}.tar.gz"
|
|
'krb5-config_LDFLAGS.patch')
|
|
sha1sums=('35b8447aa04ebfd7e22bc22fa49b3bb4a858ac9a'
|
|
'09e478cddfb9d46d2981dd25ef96b8c3fd91e1aa')
|
|
|
|
options=('!emptydirs')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}/src/build-tools"
|
|
|
|
# cf https://bugs.gentoo.org/show_bug.cgi?id=448778
|
|
patch -Np2 -i "${srcdir}"/krb5-config_LDFLAGS.patch
|
|
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}/src"
|
|
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
export CFLAGS+=" -fPIC -fno-strict-aliasing -fstack-protector-all"
|
|
export CPPFLAGS+=" -I/usr/include/et"
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc/krb5 \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var/lib \
|
|
--libdir=/usr/lib32 \
|
|
--enable-shared \
|
|
--with-system-et \
|
|
--with-system-ss \
|
|
--disable-rpath \
|
|
--without-tcl \
|
|
--enable-dns-for-realm \
|
|
--with-ldap \
|
|
--without-system-verto
|
|
|
|
make
|
|
}
|
|
|
|
#check() {
|
|
# We can't do this in the build directory.
|
|
#cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
#make -C src check
|
|
#}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}/src"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin,sbin}
|
|
mkdir -p "$pkgdir/usr/share/licenses"
|
|
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|