aboutsummaryrefslogblamecommitdiffstats
path: root/main/libgcrypt/APKBUILD
blob: e25acf97a51ea5772d4bcffc9f50f3c7b8aae3e6 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
            
        
                                                                        
                            
          
                           
                                      
                                                       
                                                                            
         
 
           

                      

                      
             
                     
 
         





                                                 


                                 
                               


                                         

                                 



            
                  


           
                                      
                                        
 
 
                                                                                                                                                                      
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgcrypt
pkgver=1.9.3
pkgrel=0
pkgdesc="General purpose crypto library based on the code used in GnuPG"
url="https://www.gnupg.org/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="libgpg-error-dev texinfo"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-$pkgver.tar.bz2
	"

# secfixes:
#   1.8.5-r0:
#     - CVE-2019-13627
#   1.8.4-r2:
#     - CVE-2019-12904
#   1.8.3-r0:
#     - CVE-2018-0495

build() {
	local _arch_configure
	case "$CARCH" in
	x86)
		_arch_configure="--disable-asm";;
	esac

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

check() {
	make check
}

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

sha512sums="977e766887c14f19aa1b9fcc0214303036a649e41cd4278de76da7d734cf36888e2e1b6275590dac523dcb4ba8ab07993e6ee8209fd5f1a3383d738b09a060d6  libgcrypt-1.9.3.tar.bz2"