summaryrefslogblamecommitdiff
path: root/system/libgcrypt/APKBUILD
blob: 535171e30522ea9c2687846cb35fa91ebdf1f1da (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                 
             
        
                                    
                           


                   
                                      
                                       


                                                                          
 
           

                      

                      
 
         










                                                                      






                                                                          













                                         



                  



                                          

                                                                                                                                                                      
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libgcrypt
pkgver=1.10.0
pkgrel=0
pkgdesc="GnuPG cryptography library"
url="https://www.gnupg.org"
arch="all"
license="LGPL-2.1+"
depends=""
makedepends="libgpg-error-dev texinfo"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.gnupg.org/ftp/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2
	missing-headers.patch
	"

# secfixes:
#   1.10.0-r0:
#     - CVE-2021-40528
#   1.8.5-r0:
#     - CVE-2019-13627

build() {
	local _arch_configure=
	case "$CARCH" in
	arm*)
		# disable arm assembly for now as it produces TEXTRELs
		export gcry_cv_gcc_arm_platform_as_ok=no
		;;
	x86 | pmmx | x86_64)
		_arch_configure="--enable-padlock-support"
		;;
	esac

	case "$CARCH" in
	pmmx)
		# https://git.adelielinux.org/adelie/packages/-/issues/511
		_arch_configure="${_arch_configure} --disable-asm"
		;;
	esac

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static \
		$_arch_configure

	make
}

check() {
	make check
}

package() {
	make -j1 DESTDIR="$pkgdir" install
	rm -f ${pkgdir}/usr/share/info/dir
}

sha512sums="785c2e14272308956bb6adcea9567c4097edf103122e18cd3907fb42a110a48a5d59c0057f05a438acd7f221c70c7f7ff87e176bd6d7ed99d16e847f9d7be087  libgcrypt-1.10.0.tar.bz2
0a4a1466bfb9415a1d1c016eab67872f9165f2f5aa90bbcc72b57fabb4996d54bdb39dbb15f01753395819dabacc536ac0936dc10b1d37b8e22d5db7a39bfed3  missing-headers.patch"