pkgname = "libgcrypt"
pkgver = "1.10.1"
pkgrel = 0
build_style = "gnu_configure"
configure_args = [
    "--enable-static", "--without-capabilities",
    "ac_cv_sys_symbol_underscore=no"
]
hostmakedepends = ["pkgconf"]
makedepends = ["libgpg-error-devel"]
pkgdesc = "GNU cryptographic library"
maintainer = "q66 <q66@chimera-linux.org>"
license = "LGPL-2.1-or-later"
url = "https://www.gnupg.org"
source = f"{url}/ftp/gcrypt/{pkgname}/{pkgname}-{pkgver}.tar.bz2"
sha256 = "ef14ae546b0084cd84259f61a55e07a38c3b53afc0f546bffcef2f01baffe9de"

@subpackage("libgcrypt-devel")
def _devel(self):
    return self.default_devel(extra = ["usr/share/info"])

@subpackage("libgcrypt-progs")
def _progs(self):
    return self.default_progs()
