aboutsummaryrefslogtreecommitdiffstats
path: root/main/p7zip/APKBUILD
blob: fa0da9e00b7545f7011b7e4164aac154cf17c07f (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=p7zip
pkgver=9.38
pkgrel=0
pkgdesc="A command-line port of the 7zip compression utility"
url="http://p7zip.sourceforge.net"
arch="all"
license="LGPL2+"
subpackages="$pkgname-doc"
depends=
makedepends="bash"
#install=p7zip.install
source="http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}_${pkgver}_src_all.tar.bz2
		p7zip-cc-cxx.patch"

_builddir="$srcdir"/${pkgname}_${pkgver}
build() {
	cd "$_builddir"
	patch -p1 -i ../p7zip-cc-cxx.patch || return 1
	sed -i "s|usr/local|usr|g" makefile
	make all3 OPTFLAGS="${CXXFLAGS}" || return 1
}

package() {
	cd "$_builddir"
	make install DEST_HOME="$pkgdir"/usr DEST_MAN="$pkgdir"/usr/share/man \
		DEST_SHARE_DOC="http://www.bugaco.com/7zip"

	sed -i "s|"$pkgdir"/usr|/usr|g" "$pkgdir"/usr/bin/7z
	sed -i "s|"$pkgdir"/usr|/usr|g" "$pkgdir"/usr/bin/7za
	sed -i "s|"$pkgdir"/usr|/usr|g" "$pkgdir"/usr/bin/7zr
#	install -m755 -D contrib/VirtualFileSystemForMidnightCommander/u7z "$pkgdir"/usr/share/mc/extfs/u7z
}

md5sums="c0394e60078e84d43fbca152cb3a1e1c  p7zip_9.38_src_all.tar.bz2
57dbabbbf7cafc1322ad7ae354fdabab  p7zip-cc-cxx.patch"
sha256sums="a73bae37461c8e51ac8ad7db186f82c8fb7d1e140098efe21a9f0e95d68ab957  p7zip_9.38_src_all.tar.bz2
c19a51d433ba2025953a36a8a86030254c9e33d00aad834a2b33e4426e99979b  p7zip-cc-cxx.patch"
sha512sums="112517e0c6eace52fd3efc6f928e53bb9bd546c487195251a6847f4801f33af7eb5163b30a116fa7ac4559a16dd6ebe5df572c33779cd8e8fb21c9662be23800  p7zip_9.38_src_all.tar.bz2
10fad26c7a044ef9750ce7084a5094fc9c70dfb27a7d75f1e66f716f52293d6274e376b7507c513abcd35ad9103433a6abe0eb304ae96593f90eb846b6aa934e  p7zip-cc-cxx.patch"