archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libzip / repos / extra-x86_64 / PKGBUILD
blob85ec47db7237cb10fde614a6f560d2e2e67e1bea
1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
2 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
4 pkgname=libzip
5 pkgver=1.9.2
6 pkgrel=1
7 pkgdesc="A C library for reading, creating, and modifying zip archives"
8 url="https://libzip.org"
9 license=('BSD')
10 arch=('x86_64')
11 depends=('zlib' 'bzip2' 'zstd' 'openssl' 'gnutls')
12 makedepends=('cmake')
13 provides=('libzip.so')
14 source=("${url}/download/${pkgname}-${pkgver}.tar.xz")
15 sha256sums=('c93e9852b7b2dc931197831438fee5295976ee0ba24f8524a8907be5c2ba5937')
17 build() {
18   cd "${pkgname}-${pkgver}"
20   mkdir build && cd build
21   cmake -DCMAKE_INSTALL_PREFIX=/usr \
22     -DCMAKE_INSTALL_LIBDIR=lib \
23     ..
24   make
27 package() {
28   cd "${pkgname}-${pkgver}"/build
30   make DESTDIR="${pkgdir}" install
31   install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"