From 2706c7cfaf801557b2969ac2d81db5278828fff4 Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Sat, 26 Aug 2017 03:02:07 +0000 Subject: main/beecrypt: modernize and add check --- main/beecrypt/APKBUILD | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/main/beecrypt/APKBUILD b/main/beecrypt/APKBUILD index 3fcd26fbfa..a1a2aa8435 100644 --- a/main/beecrypt/APKBUILD +++ b/main/beecrypt/APKBUILD @@ -1,30 +1,24 @@ # Maintainer: Natanael Copa pkgname=beecrypt pkgver=4.2.1 -pkgrel=1 +pkgrel=2 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" +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 + default_prepare + update_config_sub } build() { - cd "$_builddir" + cd "$builddir" LIBS=-lgomp ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -34,16 +28,18 @@ build() { --enable-shared \ --without-java \ --without-python \ - --with-cplusplus=no \ - || return 1 - make libaltdir=/usr/lib || return 1 + --with-cplusplus=no + make libaltdir=/usr/lib +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make libaltdir=/usr/lib DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make libaltdir=/usr/lib DESTDIR="$pkgdir" install } -md5sums="8441c014170823f2dff97e33df55af1e beecrypt-4.2.1.tar.gz" -sha256sums="286f1f56080d1a6b1d024003a5fa2158f4ff82cae0c6829d3c476a4b5898c55d beecrypt-4.2.1.tar.gz" sha512sums="59995d53c024efe6344a21ac0d6d55fbe652488a4a22cc6719f9fc3851d56697fa8738937d48aa1e6f9ebe749de61ac3c79a5f0cea793872213c3bdf922e71bc beecrypt-4.2.1.tar.gz" -- cgit v1.2.3