aboutsummaryrefslogtreecommitdiffstats
path: root/main/unzip/APKBUILD
blob: 00ae25fd74b097e12c136e0d173b5cb0ae121a30 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=unzip
pkgver=6.0
pkgrel=0
pkgdesc="Extract PKZIP-compatible .zip files"
url="http://www.info-zip.org/UnZip.html"
arch="all"
license="Custom"
depends=""
makedepends=""
subpackages="$pkgname-doc"
source="ftp://ftp.info-zip.org/pub/infozip/src/${pkgname}60.zip
	10-unzip-handle-pkware-verify.patch
	20-unzip-uidgid-fix.patch
	"

_builddir="$srcdir"/${pkgname}60
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -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="85da5203f01ab0b9403efef3b9bb4010  unzip60.zip
b860a1557b48b2c3fa52541f9260ed72  10-unzip-handle-pkware-verify.patch
3de9dee957cb83615cdcb165375d00bd  20-unzip-uidgid-fix.patch"
sha256sums="2bc3e70d412447595ac3bed58c1c1fdae289d9a652e55fd0eaadddfe111aa9e4  unzip60.zip
6829ce345b66d081cb1b8b5be37f092836fbcb71819594e45218fc03d8e80754  10-unzip-handle-pkware-verify.patch
3650b53a49742d7ffb2c7d5db2ef1cdeaf3d34d21daa976dc7024ceb605a9dee  20-unzip-uidgid-fix.patch"
sha512sums="4a455d45b2c33bc28cab74b82d13f2f1bc5f4a2c45de125345181d2e712079727e825d25e5b7765f9f9c16b7746cd5342897dc8502cb55b8a9f2329b138a1614  unzip60.zip
9d2914f22fb0075a2b6f72825c235f46eafd8d47b6fb6fcc8303fc69336e256b15923c002d2615bb6af733344c2315e4a8504d77bae301e10c11d4736faa2c81  10-unzip-handle-pkware-verify.patch
57699582e9056af0817dcb67f8db67e6a1ff8208c137fbebcf559429e5f12b471b75d7e1ef938e5bbb5416074a51ac7342e4ce8057f4bbdcb0bf079b8d7832af  20-unzip-uidgid-fix.patch"