mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:54:37 +08:00
30 lines
746 B
Bash
30 lines
746 B
Bash
#contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/libzip/
|
|
|
|
pkgname=libzip
|
|
pkgver=1.1.3
|
|
pkgrel=1
|
|
pkgdesc="A C library for reading, creating, and modifying zip archives"
|
|
url="http://www.nih.at/libzip/index.html"
|
|
license=('BSD')
|
|
arch=('x86_64')
|
|
depends=('zlib')
|
|
source=("http://www.nih.at/${pkgname}/${pkgname}-${pkgver}.tar.xz")
|
|
md5sums=('f7196e2fbae93d7e1f843aedee9bdf40')
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
# preserve old header path for compatibility
|
|
ln -s /usr/lib/libzip/include/zipconf.h "${pkgdir}/usr/include/zipconf.h"
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|