blob: 38a73f063a64910c7e6cc4e16d896b4e61fb1aa3 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=p7zip
pkgver=9.13
pkgrel=0
pkgdesc="A command-line port of the 7zip compression utility"
url="http://p7zip.sourceforge.net"
arch="x86 x86_64"
license="GPL"
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"
build() {
cd "$srcdir"/${pkgname}_${pkgver}
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 "$srcdir"/${pkgname}_${pkgver}
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="8ddb5053db3b1f2696407d01be145779 p7zip_9.13_src_all.tar.bz2
8e8f415267bb5db179e4a8ed75985244 p7zip-cc-cxx.patch"
|