summaryrefslogtreecommitdiff
path: root/extra/libzip/PKGBUILD
blob: 17451905aecda88bb0aa1824ce0deba23d09bef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 199973 2013-11-20 12:11:27Z allan $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>

pkgname=libzip
pkgver=0.11.1
pkgrel=2
pkgdesc="A C library for reading, creating, and modifying zip archives"
url="http://www.nih.at/libzip/index.html"
license=('BSD')
arch=('i686' 'x86_64' 'mips64el')
depends=('zlib')
source=("http://www.nih.at/${pkgname}/${pkgname}-${pkgver}.tar.xz"
        'fix-headers.patch')
md5sums=('87d5ec3629f6ad2a4b01ad961e7f0c19'
         '249395bd3a426c4c4e993e9d4753e1dd')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -p1 -i "${srcdir}/fix-headers.patch"
}

build() {
  cd ${pkgname}-${pkgver}
  autoreconf -i
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}