core/libzip/PKGBUILD

31 lines
852 B
Bash
Raw Normal View History

2013-06-15 03:49:41 +08:00
#maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
2013-06-15 04:58:41 +08:00
#contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/libzip/
2010-03-14 23:48:48 +08:00
pkgname=libzip
2013-06-15 03:49:41 +08:00
pkgver=0.11.1
2013-06-15 04:58:41 +08:00
pkgrel=2
2010-05-17 15:50:50 +08:00
pkgdesc="A C library for reading, creating, and modifying zip archives"
2010-03-14 23:48:48 +08:00
url="http://www.nih.at/libzip/index.html"
license=('GPL2')
2013-06-15 03:49:41 +08:00
arch=('x86_64')
2010-03-14 23:48:48 +08:00
depends=('zlib')
2010-05-17 15:50:50 +08:00
options=('!libtool')
source=("http://www.nih.at/${pkgname}/${pkgname}-${pkgver}.tar.gz"
'fix-headers.patch')
2013-06-15 03:49:41 +08:00
md5sums=('bf50518665f4ebcce623c7dcdc2f422d'
'249395bd3a426c4c4e993e9d4753e1dd')
2010-03-14 23:48:48 +08:00
build() {
2010-05-17 15:50:50 +08:00
cd ${srcdir}/${pkgname}-${pkgver}
patch -p1 -i "${srcdir}/fix-headers.patch"
2013-06-15 04:58:41 +08:00
autoreconf -i
2010-05-17 15:50:50 +08:00
./configure --prefix=/usr
2013-06-15 03:49:41 +08:00
make
2010-05-17 15:50:50 +08:00
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
2013-06-15 03:49:41 +08:00
make DESTDIR=${pkgdir} install
2013-06-15 04:58:41 +08:00
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2010-03-14 23:48:48 +08:00
}