pkgname=libzip pkgver=1.11.2 pkgrel=1 pkgdesc="C library for reading, creating, and modifying zip archives" url="https://libzip.org/" license=('GPL2') arch=('x86_64') depends=('zlib' 'openssl' 'nettle') makedepends=('cmake') options=('!libtool') source=("https://libzip.org/download/${pkgname}-${pkgver}.tar.xz") md5sums=('c3551b8417082b0a9c74d19d1e5270ea') build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build install -Dm644 ${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }