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

                                                   
            
        
                                                
                                              
          

                
                        
                          
                                                                          
 

                                    
               
                       



                                                                        
            
                                     
 
 

                       
                                 


                                 
                                   
                                  


                                  

                                     
                                           



                       

                                                                     
 



                                                                                                                                                                    
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=beecrypt
pkgver=4.2.1
pkgrel=1
pkgdesc="A general-purpose cryptography library"
url="http://sourceforge.net/projects/beecrypt"
arch="all"
license="LGPL2+"
depends=""
makedepends="libtool m4"
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	LIBS=-lgomp ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-threads \
		--enable-shared \
		--without-java \
		--without-python \
		--with-cplusplus=no \
		|| return 1
	make libaltdir=/usr/lib || return 1
}

package() {
	cd "$_builddir"
	make libaltdir=/usr/lib DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="8441c014170823f2dff97e33df55af1e  beecrypt-4.2.1.tar.gz"
sha256sums="286f1f56080d1a6b1d024003a5fa2158f4ff82cae0c6829d3c476a4b5898c55d  beecrypt-4.2.1.tar.gz"
sha512sums="59995d53c024efe6344a21ac0d6d55fbe652488a4a22cc6719f9fc3851d56697fa8738937d48aa1e6f9ebe749de61ac3c79a5f0cea793872213c3bdf922e71bc  beecrypt-4.2.1.tar.gz"