upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / aarch64-linux-gnu-glibc / trunk / PKGBUILD
blob9222173d04ebacebb87f4ae5b9ed39e098e438f9
1 # Maintainer: Anatol Pomozov
2 # Maintainer: Eli Schwartz <eschwartz@archlinux.org>
4 _target=aarch64-linux-gnu
5 pkgname=$_target-glibc
6 pkgver=2.37
7 pkgrel=1
8 pkgdesc="GNU C Library ARM64 target"
9 arch=(any)
10 url='https://www.gnu.org/software/libc/'
11 license=('GPL' 'LGPL')
12 depends=($_target-gcc $_target-linux-api-headers)
13 makedepends=(python)
14 options=(!buildflags !strip staticlibs)
15 source=(https://ftp.gnu.org/gnu/libc/glibc-$pkgver.tar.xz{,.sig})
16 sha256sums=('2257eff111a1815d74f46856daaf40b019c1e553156c69d48ba0cbfc1bb91a43'
17             'SKIP')
18 validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8  # "Carlos O'Donell <carlos@systemhalted.org>"
19               BC7C7372637EC10C57D7AA6579C43DFBF1CF2187) # Siddhesh Poyarekar
21 prepare() {
22   mkdir -p glibc-build
25 build() {
26   cd glibc-build
28   echo 'slibdir=/lib' >> configparms
29   echo 'rtlddir=/lib' >> configparms
30   echo 'sbindir=/bin' >> configparms
31   echo 'rootsbindir=/bin' >> configparms
33   # remove hardening options for building libraries
34   export CFLAGS="-U_FORTIFY_SOURCE -mlittle-endian -O2"
35   export CPPFLAGS="-U_FORTIFY_SOURCE -O2"
36   unset LD_LIBRARY_PATH
38   export BUILD_CC=gcc
39   export CC=${_target}-gcc
40   export CXX=${_target}-g++
41   export AR=${_target}-ar
42   export RANLIB=${_target}-ranlib
44   ../glibc-$pkgver/configure \
45       --prefix=/usr \
46       --target=$_target \
47       --host=$_target \
48       --build=$CHOST \
49       --includedir=/include \
50       --libdir=/lib \
51       --libexecdir=/lib \
52       --with-headers=/usr/$_target/include \
53       --with-bugurl=https://bugs.archlinux.org/ \
54       --enable-add-ons \
55       --enable-obsolete-rpc \
56       --enable-kernel=2.6.32 \
57       --enable-bind-now \
58       --disable-profile \
59       --enable-stackguard-randomization \
60       --enable-lock-elision \
61       --enable-multi-arch \
62       --disable-werror
64   echo 'build-programs=no' >> configparms
65   make
68 package() {
69   cd glibc-build
71   make install_root="$pkgdir"/usr/$_target install
73   rm -r "$pkgdir"/usr/$_target/{etc,usr/share,var}