core/libzip/PKGBUILD

30 lines
746 B
Bash
Raw Normal View History

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
2016-08-17 21:18:46 +08:00
pkgver=1.1.3
2014-11-12 20:09:12 +08:00
pkgrel=1
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"
2014-11-12 20:09:12 +08:00
license=('BSD')
2013-06-15 03:49:41 +08:00
arch=('x86_64')
2010-03-14 23:48:48 +08:00
depends=('zlib')
2015-12-12 20:59:10 +08:00
source=("http://www.nih.at/${pkgname}/${pkgname}-${pkgver}.tar.xz")
2016-08-17 21:18:46 +08:00
md5sums=('f7196e2fbae93d7e1f843aedee9bdf40')
2010-03-14 23:48:48 +08:00
build() {
2014-11-12 20:09:12 +08:00
cd ${pkgname}-${pkgver}
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() {
2014-11-12 20:09:12 +08:00
cd ${pkgname}-${pkgver}
2013-06-15 03:49:41 +08:00
make DESTDIR=${pkgdir} install
2014-11-12 20:09:12 +08:00
# preserve old header path for compatibility
ln -s /usr/lib/libzip/include/zipconf.h "${pkgdir}/usr/include/zipconf.h"
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
}