mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 17:22:07 +01:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
|
|
pkgname=zip
|
|
pkgver=3.0
|
|
pkgrel=4
|
|
pkgdesc="Creates PKZIP-compatible .zip files"
|
|
url="http://www.info-zip.org/pub/infozip/Zip.html"
|
|
arch="all"
|
|
license="Custom"
|
|
depends=""
|
|
makedepends=""
|
|
subpackages="$pkgname-doc"
|
|
source="ftp://ftp.info-${pkgname}.org/pub/info${pkgname}/src/${pkgname}30.zip
|
|
10-zip-3.0-build.patch
|
|
20-zip-3.0-exec-stack.patch
|
|
30-zip-3.0-pic.patch"
|
|
|
|
_builddir="$srcdir"/${pkgname}30
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build () {
|
|
cd "$_builddir"
|
|
make -f unix/Makefile LOCAL_ZIP="${CFLAGS} ${CPPFLAGS}" prefix=/usr generic || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make -f unix/Makefile prefix=${pkgdir}/usr MANDIR=${pkgdir}/usr/share/man install || return 1
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
md5sums="e88492c8abd68fa9cfba72bc08757dba zip30.zip
|
|
c86c527b6ad487aef02954bb1607ff07 10-zip-3.0-build.patch
|
|
f6490facf87e501b5d0c7095949515a7 20-zip-3.0-exec-stack.patch
|
|
f0b90de421d370f1b40b0f681d3829d8 30-zip-3.0-pic.patch"
|