git » minizip.git » main » tree

[main] / PKGBUILD

# Maintainer: David Runge <dvzrv@archlinux.org>
# Maintainer: Levente Polyak <anthraxx@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>

_pkgbase=zlib
pkgname=minizip
pkgver=1.3.1
pkgrel=3
arch=(x86_64 'armv7h')
license=(Zlib)
url="https://www.zlib.net/"
source=("file:///sources/zlib-$pkgver.tar.gz")
makedepends=(zlib)

prepare() {
  cd $_pkgbase-$pkgver/contrib/minizip
  cp Makefile Makefile.orig
  cp ../README.contrib readme.txt
  autoreconf -fiv
}

build() {
  cd $_pkgbase-$pkgver

  cd contrib/minizip
  ./configure --prefix=/usr --enable-static=no
  make
}

package_minizip() {
  pkgdesc='Mini zip and unzip based on zlib'
  depends=(
    glibc
    zlib
  )

  make install DESTDIR="$pkgdir" -C $_pkgbase-$pkgver/contrib/$pkgname
  install -D -m644 $_pkgbase-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"

  # https://github.com/madler/zlib/pull/229
  rm "$pkgdir/usr/include/minizip/crypt.h"
}

# vim: ts=2 sw=2 et:
sha256sums=('9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23')