aboutsummaryrefslogblamecommitdiffstats
path: root/testing/crypto++/APKBUILD
blob: 54422f349d03ef92aa2958c28ac89ef1eb3b9beb (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                 
                
                 
            

                     


                                                           
                 
          

                      
                          
                                                           
 
                  

         
                      

                                                                  
                                       



                                       
                      

                                                                                            

                                                                     

 
                                                                                                                                                              
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=crypto++
_pkgname=cryptopp
pkgver=5.6.5
_pkgver=${pkgver//./}
pkgrel=0
pkgdesc="A free C++ class library of cryptographic schemes"
url="http://www.cryptopp.com"
arch="all"
license="BSL-1.0"
depends=""
depends_dev="$pkgname"
makedepends=""
subpackages="$pkgname-dev"
source="https://www.cryptopp.com/${_pkgname}${_pkgver}.zip"

builddir="$srcdir"

build() {
	cd "$builddir"
	sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile || return 1
	export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
	make -f GNUmakefile || return 1
	make libcryptopp.so || return 1
}

package() {
	cd "$builddir"
	install -Dm644 libcryptopp.so "$pkgdir"/usr/lib/libcryptopp.so || return 1
	install -Dm644 License.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
	mkdir -p "$pkgdir"/usr/include/cryptopp/ || return 1
	install -m644 *.h "$pkgdir"/usr/include/cryptopp/ || return 1
}

sha512sums="f13718d02ca69b0129aaf9e767c9d2e0333aa7538355f9c63d9eaf1ff369062084a18dc01489439ebf37797b3ea81b01beb072057d47ec962bfb824ddc72abc7  cryptopp565.zip"