aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-08-26 03:02:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-08-28 22:24:21 +0000
commit2706c7cfaf801557b2969ac2d81db5278828fff4 (patch)
tree062b6972f42d145397b0f1f21d6667a08968b229
parent06c2c852f60d5936df87d22ed52210164aa81735 (diff)
downloadaports-2706c7cfaf801557b2969ac2d81db5278828fff4.tar.bz2
aports-2706c7cfaf801557b2969ac2d81db5278828fff4.tar.xz
main/beecrypt: modernize and add check
-rw-r--r--main/beecrypt/APKBUILD34
1 files 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 <ncopa@alpinelinux.org>
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"