aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/beecrypt/APKBUILD
blob: a1a2aa8435020e96074bf968e25c220a775be216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=beecrypt
pkgver=4.2.1
pkgrel=2
pkgdesc="A general-purpose cryptography library"
url="http://sourceforge.net/projects/beecrypt"
arch="all"
license="LGPL2+"
makedepends="libtool m4"
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	update_config_sub
}

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
	make libaltdir=/usr/lib
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make libaltdir=/usr/lib DESTDIR="$pkgdir" install
}

sha512sums="59995d53c024efe6344a21ac0d6d55fbe652488a4a22cc6719f9fc3851d56697fa8738937d48aa1e6f9ebe749de61ac3c79a5f0cea793872213c3bdf922e71bc  beecrypt-4.2.1.tar.gz"