aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgcrypt
diff options
context:
space:
mode:
Diffstat (limited to 'main/libgcrypt')
-rw-r--r--main/libgcrypt/APKBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/main/libgcrypt/APKBUILD b/main/libgcrypt/APKBUILD
index a8f41d5407..a787e28a42 100644
--- a/main/libgcrypt/APKBUILD
+++ b/main/libgcrypt/APKBUILD
@@ -1,15 +1,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgcrypt
pkgver=1.8.4
-pkgrel=0
+pkgrel=1
pkgdesc="general purpose crypto library based on the code used in GnuPG"
url="http://www.gnupg.org"
arch="all"
-license="LGPL"
-depends=""
+license="LGPL-2.1-or-later"
depends_dev="libgpg-error-dev"
makedepends="$depends_dev texinfo"
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://www.gnupg.org/ftp/gcrypt/libgcrypt/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir"/$pkgname-$pkgver
options="!checkroot"
@@ -39,7 +38,7 @@ build () {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
- --disable-static \
+ --enable-static \
$_arch_configure
make
@@ -58,4 +57,10 @@ package() {
rm -f ${pkgdir}/usr/share/info/dir
}
+static() {
+ pkgdesc="$pkgnanme static libraries"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
+}
+
sha512sums="b831fc337eb14806897e224b0d1e78d1f8e9db91dffa818a015a4aa104144e2d971e5a855904907ee2bb9990a9d526de32d6787e1cae98e28a65c3258b2b1ea1 libgcrypt-1.8.4.tar.bz2"